FreeOZ论坛

标题: 各位linux达人们,请写出20个你最常用的linux指令吧 [打印本页]

作者: 四香油饼    时间: 19-1-2011 09:05
标题: 各位linux达人们,请写出20个你最常用的linux指令吧
熟悉是指可以不用查手册就能知道基本的参数的

按这个标准,你觉得你熟悉的指令有多少个?
作者: 周星星1832    时间: 19-1-2011 09:23
cd ls rm chown mkdir vi top head tail .......
作者: coredump    时间: 19-1-2011 09:37
1. man
2. start
3. wine
4. talk
5. who
6. whoami
7. touch
8. unzip
9. swap
10. strip
11. finger
12. open
13. mount
14. fsck
15. more
16. yes
17. reload
18. restart
19. umount
20. make clean

[ 本帖最后由 coredump 于 19-1-2011 09:40 编辑 ]
作者: 四香油饼    时间: 19-1-2011 10:05
原帖由 coredump 于 19-1-2011 10:37 发表
1. man
2. start
3. wine
4. talk
5. who
6. whoami
7. touch
8. unzip
9. swap
10. strip
11. finger
12. open
13. mount
14. fsck
15. more
16. yes
17. reload
18. restart
19. u ...


原来老乞丐天天上班就干这个阿
作者: 江南柴进    时间: 19-1-2011 10:22
quote]原帖由 coredump 于 19-1-2011 10:37 发表

                               
登录/注册后可看大图

1. man
2. start
3. wine
4. talk
5. who
6. whoami
7. touch
8. unzip
9. swap
10. strip
11. finger
12. open
13. mount
14. fsck
15. more
16. yes
17. reload
18. restart
19. u ... [/quote]

OMG,居然没有grep和sed。。。。老大你太强了。

[ 本帖最后由 mohan29 于 19-1-2011 11:33 编辑 ]
作者: coredump    时间: 19-1-2011 10:56
原帖由 四香油饼 于 19-1-2011 10:05 发表


原来老乞丐天天上班就干这个阿


何止啊, 你就要求20个命令啊.

比如我平时最常用的push/pull就没地方写:(
作者: 雅瑶冬月    时间: 19-1-2011 11:03

作者: 李大锤    时间: 19-1-2011 11:40
rm -rf /*
纯属虚构,请勿对号入座
作者: bxnswj    时间: 19-1-2011 12:34
我用得最多就是grep和more
偶尔用用cd和ls
就这么多,哈哈
作者: 李大锤    时间: 19-1-2011 12:47
还有awk,sed
作者: bsd    时间: 19-1-2011 13:02
man history cd mkdir cp mv cat more echo ls vi dmesg grep find chmod chown tar dd wget scp pwd

to ubuntu: apt-get  apt-cache
to CentOS: yum

[ 本帖最后由 bsd 于 19-1-2011 14:04 编辑 ]
作者: zhuangyu9999    时间: 19-1-2011 13:05
基本上不用命令行
作者: shurman    时间: 19-1-2011 13:20
标题: LinuXXX
LinuXXX, UniXXX

[ 本帖最后由 shurman 于 19-1-2011 14:23 编辑 ]
作者: cfk    时间: 19-1-2011 18:23
tail, grep, wc, vi, emacs, ping, ifconfig, route, dmesg, cat, ack-grep, awk, sed, top, iostat, sar, rm, mv, strings, strip, uname, sort, uniq, touch, mkdir, mysql, make, ps
作者: ubuntuhk    时间: 19-1-2011 19:54
ls
wget
cd
mkdir
grep
cat
more
less
gawk
ssh
uniq
sort
perl
wget
top
vi
rm
mv
scp
cp
netstat
作者: valpa    时间: 19-1-2011 21:16
ssh
telnet
vim
if [[...]]; then
find . -name "xxxxx" | xargs grep yyyy
locate
ldd
mkdir -p
./configure help
make
tail -f
iptables --list -v
route
ifconfig
`...`
sed
uptime
reboot
mount -o rw,remount .....
作者: fargo    时间: 20-1-2011 21:05
提示: 作者被禁止或删除, 无法发言
原帖由 valpa 于 19-1-2011 22:16 发表
find . -name "xxxxx" | xargs grep yyyy


不必用PIPE.
find . -type f -name "xxxxx" -exec  grep -H yyyy {} \;

很好用,在所有文件搜索字符  yyyy, 并显示文件名(-H)

我曾总结过不常用但很有意思的命令:
http://honglus.blogspot.com/2010 ... linux-commands.html

。。。


#readlink - display destination of a symbolic link

$ls -l test2lrwxrwxrwx 1 root wheel 5 2010-03-19 10:09 test2 -> test1$readlink test2test1
#Who links me? find source softlink with "lname" argument

$ touch /var/tmp/test1$ ln -s /var/tmp/test1 /tmp/test1
$ find /tmp -lname /var/tmp/test1 -ls  11    0 lrwxrwxrwx   1 root wheel          14 Jun 30 11:07 /tmp/test1 -> /var/tmp/test1
#Who links me? find source hardlink with "samefile" argument
#hardlinks have same inode number(inode=13316 in this example), so it can also be achived with inum argument as well.

$touch /tmp/test1/test-hl$ln  /tmp/test1/test-hl /tmp/test-hl
$find /tmp/ -samefile /tmp/test1/test-hl -exec ls -il {} \;
13316 -rw-r--r-- 2 root  wheel 0 2010-06-30 11:15 /tmp/test1/test-hl13316 -rw-r--r-- 2 root wheel 0 2010-06-30 11:15 /tmp/test-hl

。。。

[ 本帖最后由 fargo 于 20-1-2011 22:07 编辑 ]
作者: chubbycat    时间: 23-1-2011 08:23
OMG,居然没有 reboot 。。。。老大你太强了。
作者: ubuntuhk    时间: 23-1-2011 08:39
标题: 回复 #18 chubbycat 的帖子
Linux/Unix的机器一般一开就是半年以上,哪里能经常用reboot啊
作者: seth_chen    时间: 23-1-2011 08:59
linux太淫荡鸟~~~~~
作者: matthew1976    时间: 23-1-2011 10:26
ps
netstat
man
iptraf
service
cat
nmap
tcpdump
top
vmstat
cd
ll
encfs
vi
tail
df
yum
apt-cache
crontab
at
作者: matthew1976    时间: 23-1-2011 10:28
OZ 用 Windows SBS的太多了,,,NND
作者: 四香油饼    时间: 23-1-2011 10:32
各位太有才了,好多命令俺都没听说过,这个帖子又让俺收益匪浅,收藏了
作者: valpa    时间: 23-1-2011 16:03
原帖由 ubuntuhk 于 23-1-2011 09:39 发表
Linux/Unix的机器一般一开就是半年以上,哪里能经常用reboot啊



哈哈,这你就错了,我玩得是嵌入式Linux,经常需要测试启动过程




欢迎光临 FreeOZ论坛 (https://hioz.im/ibbs/) Powered by Discuz! X3.2