Last updated: 8/20/2002; 5:54:20 AM

The FuzzyBlog!
Marketing 101. Consulting 101. PHP Consulting. Random geeky stuff. I Blog Therefore I Am.

PHPLarge :: FuzzyOffice :: Sidebar: Some Common Linux Examples

ls -- the *nix equivalent to dir -- getting lists of files

ls :: show all files in the directory
ls -l :: show all files in the directory with details (think ls long)
ls -l --sort=time -r :: show all files in the directory with details sorted by time, newest at the bottom
ls -l --sort=extension -r :: shows a list of files sorted by extension with the directories at the bottom
vi -- my favorite *nix editor. Modal, can be difficult, fastest thing on the planet.
vi :: runs the editor
vi . :: runs the editor and shows a list of files in the current directory to choose from
vi .. :: runs the editor and shows a list of files in the directory above the current director to choose from
vi filename.ext ENTER i :: runs the editor, opens the specified file and then pressing i puts you in insert mode
ESC ESC ESC :: within vi, pressing ESC enough times takes you out of your current location and returns you to command mode

 

 

comment []





Copyright 2002 © The FuzzyStuff