UNIX Commands Flashcards
Day 4 UNIX Commands
man
Displays on-line manual pages about command.
clear
Clears the current screen providing an empty terminal window.
pwd
Print working directory, displays the current working directory.
date
Prints or sets the system date and/or time
tree
Lists directory contents in a tree-like format
exit
Exit the current shell
ls ls -l ls -i ls -s ls -a
Lists contents of a directory
long list - shows ownership, permission, and links
-i Displays inode number in the first field
-s Displays number of file system blocks used by file
-a List all files including invisible files
less
less b
less /
less q
Displays text files one screen at a time Allows backwards movement, one page at a time / Initiates a search for a string (word) q Exits from less SPACE BAR Advances one screen at a time ENTER Key Advances one line at a time
more
Displays text files one screen at a time
Works like the less command but with fewer options
head
Automatically prints the first 10 lines of a file to standard output
tail
command automatically displays the last 10 line
cat
Displays file(s) contents to the screen and can concatenate (combine) files
echo
will print to the screen anything following it