| Handy Linux Reminders |
|
|
| Friday, 15 June 2007 08:15 | |
|
Don’t forget the command: man commandname for program/command specific information. Using Command LineGet the Drive Usage / Free spaceUse command: df -h Get the Folder sizeUse Command: du –h Schedule a commandThis will edit current users crontab config: crontab –e This will list current users crontab config: crontab –l Tasks are entered with the following syntax: * * * * * (command; another command ;) Where the *’s represent: Min, hrs, days of month, month of yr ,day of week Printing a PDFThe following command line command prints a PDF file and moves it to a folder called printed. Prerequisites:
Using VI Editor (VIM)Basic OperationEnter edit mode with ‘Ins’ Return to command mode with ‘Esc’. Quit without saving with ‘:q!’ in command mode. Quit with saving with ‘ZZ’ in command mode. Save with ‘:w’ in command mode. Save As with ‘:w newfilename’ in command mode. Turn on syntax highlighting with ‘:syntax on’. Modify Configuration DefaultsOpen /etc/vim/vimrc or .vimrc in your home directory To turn on Syntax Highlighting by default, change the line “ syntax on to syntax on. |


