Listing Files in UNIX
Hi friends , Lets have a look on listing the files and sub-directory files. we have a linux command for listing the files in the system and some other parameter options to check more information about the files.
The ls command used to display all the files listed in the current directory.
Command : $ ls
Linux will use hidden files for configuration storage information default.we can't list the hidden files by using the simple basic ls command . To display all the hidden files we have to use -a parameter with ls command.
Command : $ ls -a
To check the sub-directory files of current directory, we can use recursive option. If you have lot of files, then this will be long listing process.
Command : $ ls -R
Note: If we want to check the file type, we can use -F , then the command looks like $ ls -F -R
To check more information about the file such as modified date, time , owner,byte size and directory name. we can use -l.
Command: $ ls -l
Next article topic: Filtering list
That's it folks ,Hope you have understand something new. Have a nice day.
NDT Engineer (ASNT & NAS410)
4 年Nice