ls -il
ls -F
ls /
ls -R aaaa
alias
cp -i test test2
su max -c "touch test3"
mv test3 test6
mkdir -p aaa/bbb/ccc
rm -r abc
=======================
grep -i max /etc/*
grep -w max /etc/*
grep -v '^#' httpd.conf | grep -v '^$' | wc -1
egrep -v '^#|^$' httpd.conf
==========================
echo $?
ls /12345 2> test2
date > df.txt
date >> df.txt
mail root -s "disk free" < df.txt
mail
Lab: &&, ||
#ls / && echo “novell”
#ls /123 && echo “novell”
#ls / || echo “novell”
#ls /123 || echo “novell”
=================================
useradd -m john
tail -n 2 /etc/passwd
tail -n 2 /etc/shadow
ls -a /etc/skel
ls -a /home/john
passwd max
echo 1234 | passwd --stdin max
userdel
userdel -r
usermod -L test
usermod -U test
userdel test
ls -l /home
mv /home/test /root
chown root.root /root/test
===================================
groupadd mis
groupmod -A max mis
groupmdo -R max mis
tail -n 2 /etc/group
groupdel mis
=============================
du -sh /etc
du -h --max-depth=1 /home
nl /etc/passwd
head -n 20 /etc/passwd | tail
tail -n 14 /etc/passwd | head
============================
yast -i findutils-locate
updatedb
locate whatis
whereis whatis
which whatis
=====================
:1,100s/httpd.conf/http.bak/gc
:151,156s/^/#/g
:set nu
:set nonu
:set hlsearch
:set backspace=2
syntax on
vi /etc/inittab
id:3:initdefault
沒有留言:
張貼留言