UNIX COMMANDS

UNIX COMMANDS

UNIX COMMANDS

pwd--------------------------print working directory

cd---------------------------change directory

cd (by itself)---------------go to home directory

cd ~-------------------------go to home directory

cd /-------------------------go to root directory

cd ..------------------------go back one directory

..---------------------------back one directory

.----------------------------this directory

ls---------------------------list

ls -l------------------------list (long format)

ls -t------------------------list (time order)

ls -lt-----------------------list (long, time)

|----------------------------pipe

ls | more--------------------list, with pause every screen

ls -lt | more----------------list (long, time) with pause

qquit------------------------(listing)

cp---------------------------copy

cp [source] [dest]-----------copy from source file to dest file

cp path/file path/file-------copy from source path/file into ...

cp path/file ./file----------copy from source to current directory

cp path/file .---------------copy to current dir, keeping same name

mv---------------------------move

mv [source] [dest]-----------move from source to dest

mv path/file pathe/file------move: just like copying, except moving

mv file.A file.Br------------ename file.A as file.B

more-------------------------look at a file (with pauses)

Location: /u/ecs/soc/info/unix_cmds.html