Your valuable comments and queries are most welcomed. With the help of this article we learned some of the practical examples of 'ls' command. To display UID and GID in numeric format instead of name To display files in long listing format sorted by date/time To list files on basis of modification time ![]() Ls command is generally used to list files and directories in the file system, other useful features are to list hidden files, list file size, list files by date and time, list files in reverse, and list files UID. Just like File explorer for GUI, ls command is a CLI version of it. Recursive listing of all files in sub directories Ls command is one of the most frequently used Linux commands. Marks executables with * and directories with / Showing the files size of an file in human readable format Showing the hidden files which begins with a dot(.) Long listing showing seven attributes of a file To list the content of all subdirectories The content of the root directory can be viewed Ls with no option as an argument list files and directories in simple format where we won't be able to view details of the files like its file types, size, modified date and time, permission etc.īelow are the commands we have learned in this article: In this article we will learn some of the practical examples of 'ls' command: Ls command will list all the files available in the directory when no filename as an option is passed in the command else it will display the list of the files matching with the filename. ![]() We can list out the names of the files available in the directory with this two letter word 'ls'. Whether you use it 10 times a day or 1000 times a day, knowing the power of ls command can make your journey of usin the ls command line enjoyable. Ls command is an important command in Unix where every UNIX user and system admin cannot live without this two letter command. Before moving further let us look at the previous article, Basic UNIX Commands Everyone Should Know
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |