====== Unix command line cheat sheet ======
<code>
File Commands
ls - directory listing
ls -a - directo... <<<$PATH - show directories in the PATH, one per line
sed 's/:/\n/g' <<<$PATH - show directories in the PATH, one per line with sed
Compression
tar cf file.tar files - cre... tems
Shortcuts
Ctrl+A - move to the start of the line
Ctrl+E - move to the end of the line.
Ctrl+U - de
====== Lightning fast command line use in Linux ======
You can use keyboard shortcuts and other command line tricks to make entering commands easier and faste... n terminal:
| Ctrl-a | Move to the start of the line. |
| Ctrl-e | Move to the end of the line. |
| Alt-] x | Moves the cursor forward to the next occurre
====== vim show linenumbers ======
Displaying line numbers while editing a file can be handy. This reci... e describes how to turn on and off the display of line numbers in vi and vim.
While editing a document... ot inserting text), type the following to turn on line numbers:
:set number
If you tire of the line numbers, enter the following command to turn them off:
====== 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 Elin... ips4linux.com/search-googlecom-from-the-linux-command-line/
{{tag>linux}}
~~LINKBACK~~
~~DISCUSSION~~
them, but did you know there's a built-in command-line utility that can do just that? Here's how to do i... le to use the cipher.exe utility from the command line to securely overwrite files—all you need to do is... /securely-overwrite-files-with-a-built+in-command-line-trick?utm_source=feedburner&utm_medium=feed&utm_c
tice that the '\' is also removed from the second line.
Even more output
If you're after even more outp... t.
Open /etc/default/grub and find the following line:
GRUB_CMDLINE_LINUX=""
Add the verbose option... Open ''/etc/default/grub'' and find the following line:
GRUB_CMDLINE_LINUX=""
Add the elevator optio
The allow/deny files consist of one user name per line.
==== Commands ====
export EDITOR=vi ;to spec... 5/15 do at 5,20,35,50
''
==== Example ====
A line in crontab file like below removes the tmp files... the following command At the end of the cron job line .
''
>/dev/null 2>&1
''
==== Generate log
Windows box from your Linux machine, the Command-Line Fu web site has you covered with the quick and ea... ssword section, you'll be prompted on the command line for the password—which might be more secure if yo
====== 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 you are
..5,axes=boxed);
plotsetup(default);
The first line of the command above will set up maple to create ... mapleplot” in the "c:\temp" directory. The second line is the maple command to produce the figure. And t
er.reg and EnableScreenSaver.reg Note: The second line must be blank.)
<code>
Windows Registry Editor V... nSaver.reg.
* Change the 0 to a 1 in the fourth line.
* Save the file to your desktop with the nameE
amera monitor
* Launch cameramonitor on command line: cameramonitor
* Or from GNOME menu: Applicatio... Camera Monitor
* Change preferences on command line: cameramonitor -p
* Or from GNOME menu: Prefere
script file like so:
sedscript - one command per line
s/#00CC00/#9900CC/g
s/#990099/#000000/g
s/#... amples
Trim whitespace from beginning and end of line
You *might* have to type a tab instead of t here ... hould bookmark
* http://sed.sourceforge.net/sed1line.txt – Eric Pement
* http://www.catonmat.net/blo