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

以下是本人平时比较常用的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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值