c篏 鐚緇膩鐚Linuxラ膩

maya
篁ャLinux泣若 c篏ゃ荅宴激2荅宴膃2

 

 

c篏 鐚膃2鐚


nao
篁mv潟潟cp潟潟rm潟潟

 

– c篏潟潟 –

pwd 潟c茵腓冴
ls <ゃc筝荀с茵腓冴
mkdir c篏
cd c腱糸
mv <ゃc腱糸紊眼茵
cp <ゃc潟若
rm <ゃcゃ

 

maya
篌膕с茯ャ

 

mv 潟潟

maya
障[guest]с違ゃ潟帥若莎桁

 

[guest@localhost ~]$

 

nao
莎桁

maya
篁mv潟潟篏帥

nao
腱糸cd潟潟cc鐚

maya
cd潟潟腱糸c腱糸сmv潟潟腱糸c篏贋贋腱糸

 

– cd潟潟腱糸 –

– mv潟潟腱糸 –

maya
c帥鴻篁guest筝samplechome筝腱糸

 

mv 潟潟篏睡箴
mv [腱糸] [腱糸]

 

1. root罔

[guest@localhost ~]$ exit
鴻若: root鴻若ュ
[root@localhost ~]#

 

2. mv 潟潟ュ

[root@localhost ~]# mv /home/guest/sample /home/sample

 

3. guest若吟祉

[root@localhost ~]#su -
[guest@localhost ~]$

 

4. 腱糸腱糸篋腆肴

[guest@localhost ~]$ ls -l
drwxr-xr-x. 2 guest guest 6   2 10 21:00 潟若
drwxr-xr-x. 2 guest guest 6   2 10 21:00 潟若
drwxr-xr-x. 2 guest guest 6   2 10 21:00 鴻
drwxr-xr-x. 2 guest guest 6   2 10 21:00 ャ<潟
drwxr-xr-x. 2 guest guest 6   2 10 21:00 
drwxr-xr-x. 2 guest guest 6   2 10 21:00 恰ソ
drwxr-xr-x. 2 guest guest 6   2 10 21:00 糸
drwxr-xr-x. 2 guest guest 6   2 10 21:00 

 

5. 腱糸腱糸篋腆肴

[guest@localhost ~]$ cd ..
[guest@localhost home]$ ls -l
drwx------. 14 guest guest  4096  3  2 21:00 guest
drwxr-xr-x.  2 guest guest     6  3  2 21:00 sample

 

nao
mv 潟潟膊∞罔綽荀鐚

maya
mv潟潟綽荀荐潟с≪祉号┤馹с茯鴻с篁腓咲с蕁緇冴篏膊∞若吟у茵腓冴潟潟ャ

nao
篏句荀

maya
緇ユ鴻茯4.5.腆肴篏鐚

nao
4.samplec茵腓冴c5.homec腱糸samplec茵腓冴腆肴

maya
潟潟c荀mv潟潟後障鴻紫偽絲障鴻<荐莠号сc筝c<ゃ鴻筝膩腱糸

nao
mv潟潟紊眼c鐚

maya
c腱違紊眼сcsampletest紊眼帥

 

1. mv 潟潟ュ鐚膊∞罔у茵鐚

[root@localhost ~]# mv /home/sample /home/test

2. 紊眼篋腆肴

[guest@localhost home]$ ls -l
drwx------. 14 guest guest  4096  3  2 21:00 guest
drwxr-xr-x.  2 guest guest     6  3  2 21:10 test

 

nao
samplectestc紊c

maya
mv潟潟c篏腱糸c紊眼堺ャ荀

 

cp 潟潟

maya
罨<cp潟潟ュ祉testc潟若test2篏

 

cp 潟潟篏睡箴
cp [潟弱] [潟弱]

 

1. cp 潟潟ュ鐚膊∞罔у茵鐚

[root@localhost ~]# cp -r /home/test /home/test2

2. 潟若篋腆肴

[guest@localhost home]$ ls -l
drwx------. 14 guest guest  4096  3  2 21:00 guest
drwxr-xr-x.  2 guest guest     6  3  2 21:10 test
drwxr-xr-x.  2 root  root      6  3  2 21:20 test2

 

nao
cp潟潟潟種若鴻

maya
cp潟潟腟九障鴻紫後障鴻<ц莠罕

nao
c筝<ゃ潟若鐚

maya
c筝c<ゃ鴻潟若

 

rm 潟潟

maya
罨<rm潟潟ュtest2cゃ

 

rm潟潟篏睡箴
rm [ゅ乗院]

 

1. rm 潟潟ュ鐚膊∞罔у茵鐚

[root@localhost ~]# rm -d /home/test2
rm: c `/home/test2' ゃ障? y

 

2. 潟若篋腆肴

[guest@localhost home]$ ls -l
drwx------. 14 guest guest  4096  3  2 21:00 guest
drwxr-xr-x.  2 guest guest     6  3  2 21:10 test

 

nao
test2ゃ

maya
rm 潟潟сcゃc筝推戎筝<ゃc翫-r激с潟綽荀

nao

maya
<篏帥cc mv 潟潟у紊眼с馹翫紮 rm 潟潟уゃ鴻<帥腱篁с筝絎

nao
羔祉鐚

maya
篁純篏薈篏帥医堺ャc<篏罐鴻紊у

 

 

鐚潟潟沿

maya
筝ф篁潟潟沿菴茵憗

nao
鐚鐚

maya
箴違c篏mkdirmake directory潟若cpcopy腱糸mvmoveゃrmremove

nao
cd鐚

maya
cdchangedirectorypwdprint working directorylslist

nao
∞∝

maya
荀鴻1ゃ荀潟潟冴ф絖ц腴<潟ャ荀鴻荀c

nao
祉羲√

maya
篋冴c荀鴻с腮綺с篁障

 

 

  • mv潟潟c篏腱糸c紊眼
  • cp潟潟c潟種若鴻
  • rm潟潟cゃ
  • c筝c<ゃ潟潟綵演帥

 

鐚鐚若祉鐚鐚