ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Unix常用命令(一个初学者小总结)

Unix常用命令(一个初学者小总结)

原创 Linux操作系统 作者:zhenyu1986 时间:2009-09-21 11:23:24 0 删除 编辑

以下是本人平时比较常用的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博客 ” ,链接:https://blog.itpub.net/22570045/viewspace-615164/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: db2
请登录后发表评论 登录
全部评论

注册时间:2009-09-20

  • 博文量
    7
  • 访问量
    4180