若激с喝 Linuxラ膩

maya
篁ャLinux泣若 若激с喝ゃ荅宴

 

若激с喝

maya
若激сゃ絎Linux篏若激с潟茹c羞宴

nao
ゃ[guest]с違ゃ潟帥若莎桁

[guest@localhost ~]$

 

maya
障筝羣vic帥膩筝絲с茯

 

1. ptest c篏

[guest@localhost ~]$ mkdir ptest

 

2. permission.txt <ゃ篏

[guest@localhost ~]$ touch permission.txt

 

3. 篏<ゃ絖荐莠

[guest@localhost ~]$ vi permission.txt

 

4. 潟潟≪若ュ≪若腱糸

[i]若ュ


 

5. testュ

test


 

6. ュ≪若潟潟≪若腱糸

test

[Esc]若若

 

7. <ゃ筝吾篆絖vic帥腟篋

test

[:wq]若ュ

 

8. <ゃ絎鴻腆肴

[guest@localhost ~]$ cat permission.txt
test

 

nao
/home/guest c筝ptestcpermission.txt<ゃ篏<ゃ絎鴻test絖荐莠倶

maya
ゃс篁若激с潟腆肴

 

1. ls潟潟с若激с潟腆肴

[guest@localhost ~]$ ls -l
drwxrwxr-x. 2 guest guest 6  3  7 21:00 ptest
-rw-rw-r--. 1 guest guest 5  3  7 21:05 permission.txt
...

...

 

maya
ptest若激с潟775сpermission.txt 若激с潟664

nao
腆冴rwx鐚-0臀3絖や研鴻2我違10我違紊permission.txt 鴻х∈茯

 

– 若激с潟医ゅ –

違若
r w – r w – r – –

違若
1 1 0 1 1 0 1 0 0

違若
6 6 4

 

maya
絎鴻c荀

 

chmod 潟潟

maya
若激с潟紊眼chmod 潟潟篏帥

 

chmod 潟潟篏睡箴
chmod [若激с] [<ゃor c]

 

maya
障 chmod 潟潟篏帥cpermission.txt 若激с潟紊眼障若若<ゃ茯粋昭炊┤<帥

nao
若若r-紊眼

 

– 若激с潟医ゅ –

違若
– w – r w – r – –

違若
0 1 0 1 1 0 1 0 0

違若
2 6 4

 

nao
若激с潟264

maya
絎сс潟潟篏

 

1. chmod 潟潟с若激с潟紊眼

[guest@localhost ~]$ chmod 264 permission.txt

 

2. ls潟潟с若激с潟腆肴

[guest@localhost ~]$ ls -l
drwxrwxr-x. 2 guest guest 6  3 7 21:00 ptest
--w-rw-r--. 1 guest guest 5  3 7 21:10 permission.txt
...

...

 

maya
倶с若若茯粋昭炊┤<cу篏腆肴帥

 

1. cat 潟潟с<ゃ茯粋昭帥茵

[guest@localhost ~]$ cat permission.txt
cat: permission.txt: 荐怨障

 

nao
<ゃ茯粋昭帥堺ャc

maya
篁潟潟荀帥

 

1. vi 潟潟с<ゃ膩茵

[guest@localhost ~]$ vi permission.txt

 

2. vi c帥腆肴

~
~
"permission.txt" [茯障]

 

nao
<ゃ絎鴻腆肴с

maya
茯粋昭炊┤<<ゃ画Η膩潟潟у絎鴻茯堺ャ

nao

maya
膓吾莨若炊┤腆肴腆肴ptestゃ若若吾莨若炊┤<帥

 

1. chmod 潟潟с若激с潟紊眼

[guest@localhost ~]$ chmod 575 ptest

 

2. ls潟潟с若激с潟腆肴

[guest@localhost ~]$ ls -l
dr-xrwxr-x. 2 guest guest 6  3 7 21:15 ptest
--w-rw-r--. 1 guest guest 5  3 7 21:10 permission.txt
...

...

 

nao
ptestcゃ若若吾莨若炊┤<c

maya
篏腆肴帥

 

1. cd 潟潟ptestc腱糸

[guest@localhost ~]$ cd ptest
[guest@localhost ptest]$

 

2. touch潟潟с<ゃ篏茵

[guest@localhost ptest]$ touch sample.txt
touch: `sample.txt'  touch с障: 荐怨障

 

nao
touch潟潟с<ゃ篏堺ャc

maya
吾莨若炊┤<cс若若c<ゃ篏ゃ障吾莨若帥篋堺ャc

nao
Linuxф篏若激с潟顑

maya
若吟篏с顑綏祉莨若障篋篁緇顑帥

nao
障с篁障蕁障

 

  • 若激с潟紊眼 chmod潟潟
  • 罔若若сc茯粋昭帥吾莨若睡篏с

 

鐚鐚若祉鐚鐚