Linux ls cd
:
:
2017-10-11
Linux , Terminal (command) . , . , (raspberry pi).
Linux, , , , .
, A B, C, A . , , copy . , . Linux, . , .
cd
. cd (Change Directory) . Linux terminal ,
(Home). Terminal ~ $ ~ .
~ Home . , .
cd , Terminal . Home Documents ?
.
~$ cd Documents/
, $ ~/Documents Documents .
.
~/Documents$
cd .
1
~/Documents$ cd ..
~$
2
~$ cd Documents/folder1/
~/Documents/folder1$
3
~/Documents/folder1$ cd -
/home/morvan
~$
4
~/Documents/folder1$ cd ../../
~$
5 Home
~/Documents/folder1$ cd ~
~$
6 ,
~$ cd /home/morvan/Documents/folder1
~/Documents/folder1$
ls
, , , . (, ).
Documents (folder1)(file1). Documents,
ls (list ) .
~/Documents$ ls
file1 folder1
ls .
1 -l (long ). (-rw-rw-r-- ), , , ,
~/Documents$ ls -l
total 4
-rw-rw-r-- 1 morvan morvan 0 Oct 12 07:38 file1
drwxrwxr-x 2 morvan morvan 4096 Oct 12 07:26 folder1
2 -a (all ) . ( . )
$ ls -a
. .. file1 folder1 .hidden_file
3 -lh (human), -l , . K, MB, GB
$ ls -lh
total 4.0K
-rw-rw-r-- 1 morvan morvan 0 Oct 12 07:38 file1
drwxrwxr-x 2 morvan morvan 4.0K Oct 12 07:26 folder1
4 , --help
$ ls --help