以下是本人平时比较常用的unix命令
ls-l: 显示文件(长度,日期)
ls-a: 显示所有文件,包括隐藏文件
pwd:显示工作目录
rm: 删除
rm-r dir1:删除目录
cp: copy file1 to file2
cp-r/dirl/dirl_temp: copy dir1 to dir_temp
ls>file1: 生成file1
cat file1: 看file1
mkdir:创建目录
cd dir1: 进到dir1下
cd.. :返回上一级
mv: 删除
chmod: change mode
-rwer--r--1: r:read; w:write; e:execute;
who am i:
man:查看命令
:q :退出man
vi: 进入编辑
./ : 执行当前命令
|more:分屏显示
grep: 过滤
kill-9: kill running process
ps: display informations about active process
top: show the informations about cpu and menory ,it updated at regular intervals
df-k: display available disk,space for filesystem.
du-h:estimate file space usage
cc filename.c-o filename1: compile programme
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22570045/viewspace-615164/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22570045/viewspace-615164/