Basic Unix Commands

 

cd change the directory

cat connect (append) files

copy copy files and directories of files

cp copy files

mkdir create a new directory

who display the system’s logged users

more display text one screen at a time

echo display text on the terminal

pwd display the name of the working directory

file display a file’s type

split divide a file into smaller parts

clear erase the terminal display

vi full-screen visual editor

ls list files in directories

passwd maintain a user’s password

paste merge lines of text

chmod modify file permissions (ownership attributes)

mv move (rename) files

rm remove (erase) files

rmdir remove an empty directory

who am I report the user’s login name

grep search a file for a matching pattern

lp send output to a system printer service

tabs set the default tabs

du show disk usage

ed simple line editor

kill stop (kill) processes

exit exit the session

 


CPST2000