List command in Linux (ls,ll)

Linux- list command in Linux Ls command and options in Linux :         ls command used to list the files and directories in ...

Linux- list command in Linux



Ls command and options in Linux:
        ls command used to list the files and directories in the Linux environment. Some of the options are used to get additional information about the file. 


Syntax:
              ls [options] [file path]


Commands:
ls  ->>>  list the files and directories

ls /home  ---> list the files and directories for the specific directory 


options:


-a  --> list the hidden files and directories.
Command: ls -a
example

-A ---> list the hidden files and directories except  “ . “ and “ .. “ in the current directory
Command: ls -A
Example

-F -->  list the Directories and mention “ / “ at the end of the directory name.
Command: ls -F
Example:    

 -l -->  list all files and directories with a long format ( it will show the permission user name size created date and time and file and directory name)
Command: ls -l or ll --> its is the alias of ls- l 
Example: 

-lh --> list the file and directories in the long format as the human-readable format
Command: ls -lh
Example:

-la or -al -->  list the hidden files and directories in the long format as the human-readable format.
-lah  → list the hidden files directories in the long human-readable format.
Command: ls -la or ls -al 
                   ls -lah 
Example:

 

 -r ---> list the files in reverse order 
-R ----> list the all directories along with subdirectories and files.
Command: 
                 ls -r

  command: ls -R  

command:   ls -Rlh

-0 -->  list the files and directories without a group name
-g -->  list the files and directories without a owners name
-t  --> list the files and directories by their created time 
-i  --> list the files and directories with their index number or inode number 
-s --> list the files and directories with their size 
-S --> list the files and directories with their size large value at the top.

Using lh,lr, a to this can check them with human-readable and reverse order, hidden files as well.

Command: ls -o
Command: ls -g
Command: ls -t
Command: ls -i
Command: ls -s 
Command:ls -S
ls -1 ---> list the file and directories  one file per line
Command: ls -1
example:

        :

:

COMMENTS

Name

AWS,1,Devops,1,Linux,6,
ltr
item
Techie View: List command in Linux (ls,ll)
List command in Linux (ls,ll)
https://1.bp.blogspot.com/-ZcO1y5ulX2k/XiH0d58DntI/AAAAAAAAAEo/HilN7hxLC7klL3omyjP_77-Lnct6LFkuQCLcBGAsYHQ/s640/list.png
https://1.bp.blogspot.com/-ZcO1y5ulX2k/XiH0d58DntI/AAAAAAAAAEo/HilN7hxLC7klL3omyjP_77-Lnct6LFkuQCLcBGAsYHQ/s72-c/list.png
Techie View
https://www.techiev.com/2020/01/list-command-in-linux-lsll.html
https://www.techiev.com/
https://www.techiev.com/
https://www.techiev.com/2020/01/list-command-in-linux-lsll.html
true
7013663511659419322
UTF-8
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy