Unix Commands

Unix Commands

Command Example
pwd Displays the current directory
ls List the current directory
-l : Include file details
-a : Include hidden files
-F: show directories
rm Remove a file
mkdir Create a new directory
rmdir Remove a directory Or rm -r if the directory is not empty.
cd Change current directory
cp Copy a file cp souce destination
mv Move or rename a file mv hello.c newname.c
cat Display the contents of a file cat hello.c
less Display file contents nicely less hello.c
man Manual pages man ls
yelp Nicer help display yelp &
top Displays CPU usage top
q to quit
ps Lists processes ps u
kill Kills a process kill 15577

上一篇:Linux命令-完整手册


下一篇:Linux常用命令