Linux 命令大全
整理人 :alex
整理日期:二〇〇五年八月三十日星期二
本资料从网站搜集整理
目 录
1. linux系统管理命令 ......................................................................................................................1
adduser ......................................................................................................................................1
chfn(change finger information) ...............................................................................................1
chsh(change shell).....................................................................................................................1
date............................................................................................................................................2
exit.............................................................................................................................................3
finger.........................................................................................................................................4
free ............................................................................................................................................5
fwhois........................................................................................................................................5
gitps(gnu interactive tools process status).................................................................................5
groupdel(group delete)..............................................................................................................6
groupmod(group modify)..........................................................................................................6
halt.............................................................................................................................................7
id ...............................................................................................................................................7
kill .............................................................................................................................................8
last.............................................................................................................................................8
lastb...........................................................................................................................................8
login ..........................................................................................................................................9
logname.....................................................................................................................................9
logout ........................................................................................................................................9
logrotate ....................................................................................................................................9
newgrp.....................................................................................................................................10
II
nice..........................................................................................................................................10
procinfo(process information).................................................................................................11
ps(process status) ....................................................................................................................11
pstree(process status tree) .......................................................................................................14
reboot ......................................................................................................................................15
renice.......................................................................................................................................15
rlogin(remote login)................................................................................................................16
rsh(remote shell) .....................................................................................................................16
rwho ........................................................................................................................................16
screen ......................................................................................................................................17
shutdown.................................................................................................................................17
sliplogin...................................................................................................................................18
su(super user) ..........................................................................................................................18
sudo.........................................................................................................................................19
suspend....................................................................................................................................19
swatch(simple watcher)...........................................................................................................20
tload.........................................................................................................................................20
top ...........................................................................................................................................21
uname......................................................................................................................................21
useradd ....................................................................................................................................22
userconf...................................................................................................................................22
userdel.....................................................................................................................................23
usermod...................................................................................................................................23
vlock(virtual console lock)......................................................................................................24
w..............................................................................................................................................24
who..........................................................................................................................................25
whoami....................................................................................................................................25
whois.......................................................................................................................................25
2. linux系统设置命令 ....................................................................................................................27
alias .........................................................................................................................................27
III
apmd(advanced power management BIOS daemon) ..............................................................27
aumix(audio mixer).................................................................................................................27
bind .........................................................................................................................................29
chkconfig(check config) .........................................................................................................29
chroot(change root).................................................................................................................30
clock........................................................................................................................................30
crontab.....................................................................................................................................31
declare.....................................................................................................................................31
depmod(depend module).........................................................................................................32
dircolors ..................................................................................................................................32
dmesg ......................................................................................................................................33
enable ......................................................................................................................................33
eval..........................................................................................................................................33
export ......................................................................................................................................33
fbset(frame buffer setup).........................................................................................................34
grpconv(group convert to shadow password) .........................................................................35
grpunconv(group unconvert from shadow password).............................................................35
hwclock(hardware clock)........................................................................................................35
insmod(install module) ...........................................................................................................36
kbdconfig ................................................................................................................................36
lilo(linux loader) .....................................................................................................................37
liloconfig.................................................................................................................................38
lsmod(list modules).................................................................................................................38
minfo .......................................................................................................................................38
mkkickstart..............................................................................................................................39
modinfo(module infomation)..................................................................................................39
modprobe(module probe)........................................................................................................39
mouseconfig............................................................................................................................40
ntsysv ......................................................................................................................................41
passwd(password) ...................................................................................................................41
IV
pwconv....................................................................................................................................41
pwunconv................................................................................................................................42
rdate(receive date)...................................................................................................................42
resize .......................................................................................................................................42
rmmod(remove module) .........................................................................................................42
rpm(redhat package manager).................................................................................................43
set ............................................................................................................................................46
setconsole................................................................................................................................47
setenv(set environment variable) ............................................................................................48
setup ........................................................................................................................................48
sndconfig.................................................................................................................................48
SVGAText Mode.....................................................................................................................49
timeconfig ...............................................................................................................................49
ulimit.......................................................................................................................................50
unalias .....................................................................................................................................50
unset ........................................................................................................................................51
3. linux文档编辑命令 ....................................................................................................................52
col............................................................................................................................................52
colrm(column remove)............................................................................................................52
comm(common)......................................................................................................................52
csplit(context split)..................................................................................................................53
ed(editor).................................................................................................................................53
egrep........................................................................................................................................54
ex.............................................................................................................................................54
fgrep(fixed regexp) .................................................................................................................54
fmt(fromat)..............................................................................................................................54
fold ..........................................................................................................................................55
grep .........................................................................................................................................55
ispell(interactive spelling checking) .......................................................................................57
jed............................................................................................................................................58
V