====== Unix command line cheat sheet ======
<code>
File Commands
ls - directory listing
ls -a - directory listing with hidden... ttern dir - search recursively for pattern in dir
command | grep pattern - search for pattern in the output of command
updatedb - updates the slocate database; see next
====== Tasks that are best done on the command line ======
Here are a few tasks that you might want to consider using the command line for.
===== Resizing images =====
Unless yo... reason to load up Photoshop or the Gimp. A simple command will usually suffice for almost all your image re... doing lots of image resizing during the day, this command could potentially save you a LOT of time. You can
^
| Capture entire screen: |Command-Shift-3 |
|Capture Area to file | Command-Shift-4|
|Captures window or menu | Command-Shift-4, Space Bar, Click|
|Captures to clipboard |Command-Shift-Control-4|
^Programs/Windows ^^
|Close fro
====== Command line tipps ======
===== Resizing images =====
Unless you are doing some sort of cropping ... reason to load up Photoshop or the Gimp. A simple command will usually suffice for almost all your image re... doing lots of image resizing during the day, this command could potentially save you a LOT of time. You can... ime adding drop shadows to images. Using a simple command I was able to create drop shadows in seconds.
c
====== Lightning fast command line use in Linux ======
You can use keyboard shortcuts and other command line tricks to make entering commands easier and faster. You might already know about the ‘tab’ key which completes partial commands and even file and directory names.
Here are som
table) with the contents of $mbr.backup.file.
dd command to copy MBR (identically sized partitions only)
Type dd command as follows:
# dd if=/dev/sda of=/dev/sdb bs=512 count=1
Above command will copy 512 bytes (MBR) from sda to sdb disk. T... both discs have identically sized partitions.
dd command for two discs with different size partitions
#
===== Must have windows software ======
- Total Commander. I can’t imagine working on a computer without Total Commander. Absolutely must-have software. Total Commander is what separates boys from men. Total Commander is probably the #1 reason why I don’t use other operati
ut nothing as complicated as troff/groff.
At the command line, type txt2man -h to view the built-in docume... is actually the displayed help itself.
Using the command:
$ txt2man -h 2>&1 | txt2man -T
will display ... e and preview it with the default pager. The same command, without the "-T" option, will display the troff/... d output itself. If we redirect the output of the command to a file:
$ txt2man -h 2>&1 | txt2man > txt2ma
On the nagios server only: =====
You need these commands to enable netio checking for a hostgroups based configuration.
<code>
# 'ssh_netio' command definition
define command{
command_name ssh_netio
ny files consist of one user name per line.
==== Commands ====
export EDITOR=vi ;to specify a editor to... r specifying day , date and time followed by the command to be run at that interval.
''
* * * * * command to be executed
- - - - -
| | ... ing the parameter values as below will cause this command to run at different time schedule below :
30 0
upload and download files, etc. And aws, a simple command-line utility written in Perl, is the perfect tool... u can do this using the sudo apt-get install curl command. Next, grab the latest version of the aws script:... create a bucket for your backup use the aws mkdir command (replacing BUCKET with the actual name):
aws m... ord to yourself, and keep it carefully. The above command will generate a file called todays_backup.tgz.aes
e repositories
Now you need to run the following command to update the source list
sudo apt-get update... e libdvdcss2 package is essential.
The following command adds Medibuntu’s repository to Ubuntu. It also ad... se --force-yes instead of --yes in order for this command to succeed.
For i386 Users install Codecs using the following command
sudo apt-get install w32codecs libdvdcss2
F
reboot a Windows box from your Linux machine, the Command-Line Fu web site has you covered with the quick and easy command to use.
===== =====
In order to actually use this command, you'll need to make sure that you have the samba... The simple ''sudo apt-get install samba-common'' command will do it for any Debian-based Linux.
Now you c
== Securely wipe free space using built-in cypher command ======
There's plenty of utilities to help you s... recover them, but did you know there's a built-in command-line utility that can do just that? Here's how to... ld be able to use the cipher.exe utility from the command line to securely overwrite files—all you need to ... te that we tested this on Windows 7, but the same command is available on XP or Vista if you are using the
====== Search Google.com from the Linux command line ======
You can search Google.com from the Linux command line without using a CLI web browser like lynx or... packages installed. Then you issue the following command:
curl -A Mozilla http://www.google.com/search?... ://tips4linux.com/search-googlecom-from-the-linux-command-line/
{{tag>linux}}
~~LINKBACK~~
~~DISCUSSION~~