Table of contents
- • list the sub directories and files avaiable in the present directory
- • list the files and directories in long list format with extra information
- • list all including hidden files and directory
- • list all the files having .sh extension.
- • list the files and directories with index numbers inodes
- • list only directories.(we can also specify a pattern)
• list the sub directories and files avaiable in the present directory
ls
• list the files and directories in long list format with extra information
ls -l
• list all including hidden files and directory
ls -a
• list all the files having .sh extension.
ls *.sh
Note :- whenever you want somethign specific file use * and then write format of file
• list the files and directories with index numbers inodes
ls -i
• list only directories.(we can also specify a pattern)
ls -d */
© 2024 Anand Raval. All rights reserved.