1.
touch
œšá¢ÎÄŒt
2.
mkdir
œšá¢Ä¿ÂŒ
èšÏT RWX
R = RUN
W = WRITE
X = è«2¿
3.
cp
žŽÖÆÎÄŒt
4.
cp -R
žŽÖÆÄ¿ÂŒ
5.
ls -a
2é¿ŽÎÄŒt
-i
iœúμã λÖÃμØÖ·
6.
ls -l
ÏêÏžÎÄŒt
7.
ls -ld
ÏêϞĿŒ
8.
rm
éŸ3yÎÄŒt
9.
rm -r
éŸ3yÄ¿ÂŒ
10.
cat
11.
more
Ææ1ÖμÄžDŸõ ÄãÂèμÄ è«êÇ directory ÄáÂê ÎÄŒt Ë-¶ŒÖaμàêÇÎÄŒt°¡£¡ÄàÃoμÄ£šÖ»Äü2é¿ŽÎÄŒt2»Äü2é¿ŽÄ¿ÂŒ£©
£šenter is one
space is ye
q eitl£©
12.
head£ší·2¿£©
êäèëDDêy2é¿ŽÎÄŒtí· £šÄ¬èÏ10 DD£©
13.
tail£šÎ2°í£©
2é¿ŽDDêy2é¿ŽÎÄŒtÄ©Î2 -f
¶ˉ쬞üDÂ
ó2᎜ó2»ÔêDí¿çÎÄŒtÏμí3 ŒŽ /lcx != /root
14.
ln£šlink ᎜ó£©
ln -s èíᬜó(ààËÆóú¿ìœY·œêœwindows) ln ó2᎜ó(ààËÆóúcp+í¬2œžüD cp걌ä2»í¬ ln 걌äÏàí¬)
ln DèòaÎÄŒt œšá¢λÖÃ
15.
chmod
žüžÄèšÏT
chmod (ugo) (= - rwx) directory
r = 4
w = 2 x = 1
use r + w + x
16.
chown
žüžÄóû§
chown óû§ directory
useradd
ìíŒóóû§
passwd óû§ ÃüÂëìíŒó
17.
chgrp žüžÄóû§×é
18.
umask 2鿎ĬèÏèšÏT 0022
Õažö 022 ààËÆóúàíœa ÄãûóDμÄèšÏT¡£¡£¡£¡£a«Ëö°¡ÑúÂë¡£¡£
linux èšÏT1æÔò£oè±ê¡ŽŽœšμÄÎÄŒt2»ÄüêúóèXèšÏT
use umask 027
19.
which + order
the can get where are order
whereis + order
the can get where are order and &order
20.
find google 范围】
find /home deb
find /home -name init
根据文件名字
*匹配字符包括0个 init*...*init*
find /home -size +121313 根据大小
?匹配单个字符
init??? 随在放哪
find /home -user lcx 根据用户 + 大于 -小于 等于 204800 。。。。
20.1
天
ctime
atime mtime
c = change
a = access访问
m = modify修改
分钟
cmin
amin
mmin
属性被修改过
reading
内容被修改
- 多长时间之内
+超过多少时间
直接时间 这个太假了
find /home -mmin -120
-a and
-o
or
-type
-f 0101001
-l
directory
d fily
find / -atime 123 -a -atime 12
use gen ben yiyi
find ..... -exec
(order) {} \;
\zhuan yi fu
{}find ends
ls -a
{} \;
-ok
have que ren
rm "a b"
{
ls -i
find -inum 12
}
grep
master
/home
directory google
man ls
help directory
whatis
just use fangxiang
apropos home
neishiyu
ls --help
help
google shell
order
gzip 123
// the gzip can`t gzip directory
gunzip
gzip -d 123.gz
tar // the can gzip directory
-c gzip
-v == ls -l
-f -- chong ming ming
-z .tar.gz
tar -zvcf 1234.tar.gz 123//tar -zvcf 1234 123
file 123 == reading .xxx
-x un .tar
-z un .gz
zip can to windows linux
zip -r directory
zip file
zip will keep new file
unzip
un zip
bzip2
-k
keep new file
bunzip2
-k keep .bz2