掌握 Linux 命令是编写有效的 shell 脚本必不可少的序曲。
本章节涉及了下列的命令:
.(参照 source)
.
source
ac
adduser
agetty
agrep
ar
arch
at
autoload
awk(参考 使用 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(相关话题:退出状态)
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)
groups
$GROUPS
gs
gzip
halt
hash
hdparm
head
help
hexdump
host
hostid
hostname(相关话题:变量 $HOSTNAME)
hostname
$HOSTNAME
hwclock
iconv
id(相关话题:变量 $UID)
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)
patch
pathchk
pax
pgrep
pidof
ping
pkill
popd
pr
printenv
printf
procinfo
ps
pstree
ptx
pushd
pwd(相关话题:变量 $PWD)
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
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
15. 内建命令
15.1 任务控制命令
16. 外部筛选器,任务及命令
16.1 基础命令
16.2 复杂命令
16.3 时间/日期命令
16.4 文本处理命令
16.5 文件与归档命令
16.6 通信命令
16.7 终端控制命令
16.8 数学命令
16.9 其他命令
17. 系统与管理命令
17.1 分析一个系统脚本
Last updated 4 years ago