第四部分 命令
约 579 字大约 2 分钟
第四部分 命令
掌握 Linux 命令是编写有效的 shell 脚本必不可少的序曲。
本章节涉及了下列的命令:
.
(参照source
)ac
adduser
agetty
agrep
ar
arch
at
autoload
awk
(参考 使用awk
进行数学运算)badblocks
banner
basename
batch
bc
bg
bind
bison
builtin
bzgrep
bzip2
cal
caller
cat
cd
chattr
chfn
chgrp
chkconfig
chmod
chown
chroot
cksum
clear
clock
cmp
col
colrm
column
comm
command
compgen
complete
compress
coproc
cp
cpio
cron
crypt
csplit
cu
cut
date
dc
dd
debugfs
declare
depmod
df
dialog
diff
diff3
diffstat
dig
dirname
dirs
disown
dmesg
doexec
dos2unix
du
dump
dumpe2fs
e2fsck
echo
egrep
enable
enscript
env
eqn
eval
exec
exit
(相关话题:退出状态)expand
export
expr
factor
false
fdformat
fdisk
fg
fgrep
file
find
finger
flex
flock
fmt
fold
free
fsck
ftp
fuser
getfacl
getopt
getopts
gettext
getty
gnome-mount
grep
groff
groupmod
groups
(相关话题:变量$GROUPS
)gs
gzip
halt
hash
hdparm
head
help
hexdump
host
hostid
hostname
(相关话题:变量$HOSTNAME
)hwclock
iconv
id
(相关话题:变量$UID
)ifconfig
info
infocmp
init
insmod
install
ip
ipcalc
iptables
iwconfig
jobs
join
jot
kill
killall
last
lastcomm
lastlog
ldd
less
let
lex
lid
ln
locate
lockfile
logger
logname
logout
logrotate
look
losetup
lp
ls
lsdev
lsmod
lsof
lspci
lsusb
ltrace
lynx
lzcat
lzma
m4
mail
mailstats
mailto
make
MAKEDEV
man
mapfile
mcookie
md5sum
merge
mesg
mimencode
mkbootdisk
mkdir
mkdosfs
mke2fs
mkfifo
mkisofs
mknod
mkswap
mktemp
mmencode
modinfo
modprobe
more
mount
msgfmt
mv
nc
netconfig
netstat
newgrp
nice
nl
nm
nmap
nohup
nslookup
objdump
od
openssl
passwd
paste
patch
(相关话题:diff
)pathchk
pax
pgrep
pidof
ping
pkill
popd
pr
printenv
printf
procinfo
ps
pstree
ptx
pushd
pwd
(相关话题:变量$PWD
)quota
rcp
rdev
rdist
read
readelf
readlink
readonly
reboot
recode
renice
reset
resize
restore
rev
rlogin
rm
rmdir
rmmod
route
rpm
rpm2cpio
rsh
rsync
runlevel
run-parts
rx
rz
sar
scp
script
sdiff
sed
seq
service
set
setfacl
setquota
setserial
setterm
sha1sum
shar
shopt
shred
shutdown
size
skill
sleep
slocate
snice
sort
source
sox
split
sq
ssh
stat
strace
strings
strip
stty
su
sudo
sum
suspend
swapoff
swapon
sx
sync
sz
tac
tail
tar
tbl
tcpdump
tee
telinit
telnet
Tex
texexec
time
times
tmpwatch
top
touch
tput
tr
traceroute
true
tset
tsort
tty
tune2fs
type
typeset
ulimit
umask
umount
uname
unarc
unarj
uncompress
unexpand
uniq
units
unlzma
unrar
unset
unsq
unzip
uptime
usbmodules
useradd
userdel
usermod
users
usleep
uucp
uudecode
uuencode
uux
vacation
vdir
vmstat
vrfy
w
wait
wall
watch
wc
wget
whatis
whereis
which
who
whoami
whois
write
xargs
xrandr
xz
yacc
yes
zcat
zdiff
zdump
zegrep
zfgrep
zgrep
zip