Tìm hiểu kĩ hơn về lệnh ls trên VPS Server
lslà để xem toàn bộ file nhưng chỉ hiển thị tên file, và không bao gồm các file và folder được ẩn.ls -alà để xem toàn bộ file và thư mục bao gồm các file và thư mục bị ẩn.ls -llà xem toàn bộ file/folder kèm theo thông tin chi tiết của file/folder đó nhưng không bao gồm các file/folder ẩn.ls -allà xem toàn bộ file/folder với thông tin chi tiết và bao gồm các file/folder bị ẩn.
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| [root@vpscanban ~]# lsanaconda-ks.cfg install.log thachpham-cp.htmldata install.log.syslog thachpham.html[root@vpscanban ~]# ls -a. .bash_logout data .ssh.. .bash_profile install.log .tcshrcanaconda-ks.cfg .bashrc install.log.syslog thachpham-cp.html.bash_history .cshrc .pki thachpham.html[root@vpscanban ~]# ls -ltotal 32-rw------- 1 root root 896 Dec 17 2013 anaconda-ks.cfgdrwxr-xr-x 2 root root 4096 Sep 20 21:52 data-rw-r--r-- 1 root root 8412 Dec 17 2013 install.log-rw-r--r-- 1 root root 3384 Dec 17 2013 install.log.syslog-rw-r--r-- 1 root root 36 Sep 20 21:31 thachpham-cp.html-rw-r--r-- 1 root root 36 Sep 20 21:30 thachpham.html[root@vpscanban ~]# ls -altotal 68dr-xr-x--- 5 root root 4096 Sep 20 21:52 .dr-xr-xr-x 21 root root 4096 Sep 20 19:15 ..-rw------- 1 root root 896 Dec 17 2013 anaconda-ks.cfg-rw------- 1 root root 0 May 2 16:16 .bash_history-rw-r--r-- 1 root root 18 May 20 2009 .bash_logout-rw-r--r-- 1 root root 176 May 20 2009 .bash_profile-rw-r--r-- 1 root root 176 Sep 22 2004 .bashrc-rw-r--r-- 1 root root 100 Sep 22 2004 .cshrcdrwxr-xr-x 2 root root 4096 Sep 20 21:52 data-rw-r--r-- 1 root root 8412 Dec 17 2013 install.log-rw-r--r-- 1 root root 3384 Dec 17 2013 install.log.syslogdrwxr----- 3 root root 4096 Apr 9 16:31 .pkidrwx------ 2 root root 4096 Sep 20 19:15 .ssh-rw-r--r-- 1 root root 129 Dec 3 2004 .tcshrc-rw-r--r-- 1 root root 36 Sep 20 21:31 thachpham-cp.html-rw-r--r-- 1 root root 36 Sep 20 21:30 thachpham.html |





0 nhận xét:
Đăng nhận xét