PHPLarge -- FuzzyOffice -- Sidebar- Some Common Linux Examples
Last updated: 8/20/2002; 5:54:20 AM |
Marketing 101. Consulting 101. PHP Consulting. Random geeky stuff. I Blog Therefore I Am.
PHPLarge :: FuzzyOffice :: Sidebar: Some Common Linux Examplesls – 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
Copyright 2002 © The FuzzyStuff |
Posted In: #php