Different ls commands in Linux:
[admin@localhost Desktop]$ pwd
/home/admin/Desktop
[admin@localhost Desktop]$ ls
linux_grep new file new file (copy) test1.txt testfolder.zip
linux_grep.txt new file~ practice testfolder.rar zip unzip.txt
[admin@localhost Desktop]$ ls -l
total 48
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$ ls -lt
total 48
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
[admin@localhost Desktop]$ ls -lrt
total 48
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
[admin@localhost Desktop]$ ls -ls
total 48
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$ ls -lrs
total 48
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
[admin@localhost Desktop]$ ls -lsrt
total 48
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
[admin@localhost Desktop]$ ls -la
total 56
drwxr-xr-x. 3 admin admin 4096 Oct 1 23:00 .
drwx------. 28 admin admin 4096 Oct 2 12:01 ..
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$
[admin@localhost Desktop]$ pwd
/home/admin/Desktop
[admin@localhost Desktop]$ ls
linux_grep new file new file (copy) test1.txt testfolder.zip
linux_grep.txt new file~ practice testfolder.rar zip unzip.txt
[admin@localhost Desktop]$ ls -l
total 48
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$ ls -lt
total 48
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
[admin@localhost Desktop]$ ls -lrt
total 48
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
[admin@localhost Desktop]$ ls -ls
total 48
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$ ls -lrs
total 48
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
[admin@localhost Desktop]$ ls -lsrt
total 48
4 -rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
4 -rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
4 -rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
0 -rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
4 -rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
4 -rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
4 -rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
20 -rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
4 drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
0 -rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
[admin@localhost Desktop]$ ls -la
total 56
drwxr-xr-x. 3 admin admin 4096 Oct 1 23:00 .
drwx------. 28 admin admin 4096 Oct 2 12:01 ..
-rw-rw-r--. 1 admin admin 1286 Aug 22 22:05 linux_grep
-rw-rw-r--. 1 admin admin 3758 Aug 22 22:26 linux_grep.txt
-rw-rw-r--. 1 admin admin 20 Sep 20 12:50 new file
-rw-rw-r--. 1 admin admin 0 Sep 20 12:50 new file~
-rw-rw-r--. 1 admin admin 0 Oct 1 23:00 new file (copy)
drwxrwxr-x. 5 admin admin 4096 Oct 1 22:49 practice
-rw-rw-r--. 1 admin admin 184 Sep 20 12:41 test1.txt
-rw-rw-r--. 1 admin admin 220 Sep 20 17:38 testfolder.rar
-rw-rw-r--. 1 admin admin 390 Sep 20 12:59 testfolder.zip
-rw-rw-r--. 1 admin admin 20190 Oct 1 22:31 zip unzip.txt
[admin@localhost Desktop]$
No comments:
Post a Comment