[ Web Proxy ]
URL:
Viewing: https://morvanzhou.github.io/tutorials/others/linux-basic/2-01-basic-command/ [Back]  [Original]

Linux ls cd - Linux | Python

Linux ls cd

: : 2017-10-11

Linux , Terminal (command) . , . , (raspberry pi).

Linux  ls  cd [Linux ls cd]

Linux, , , , .

, A B, C, A . , , copy . , . Linux, . , .

cd

. cd (Change Directory) . Linux terminal , (Home). Terminal ~ $ ~ . ~ Home . , .

Linux  ls  cd [Linux ls cd]

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 ) .

Linux  ls  cd [Linux ls cd]

~/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

: Facebook [Facebook] [] [] Twitter [Twitter]
, , . , Python , , .




[]

Linux

:



Email: morvanzhou@hotmail.com

© 2018 morvanzhou.github.io All Rights Reserved


Web Proxy Viewer  |  New URL  |  Original Page