Common Shell Commands

Directory Listing

ls
default listing of folders and files.

ls -l
"long" listing, showing one file/folder per line, with size, date, and permissions.

ls -la
"long" listing showing "all" files, including hidden files. Hidden files are those that begin with a period.

cd
Change directory.

cd ~
Change to my home directory.

cd ~username
Change to the home directory of username.

cat
Concatenate (display) a file. Equivalent to "type" in a windows command shell.

more
Displays a file in a paged manner. Enter will display one more line. Space will show one more page. There is no backward scrolling.

less
Displays a file in a paged manner. Similar to more but provides backward scrolling and the ability to jump to the end and beginning of the file.

sudo (command)
Executes the designated command as super user.