![]() ![]() ![]() Learn about them by running: $ man ls tree There are many other useful options for ls, and you can combine them together to achieve what you need. Something missing? Looking for a hidden file? No problem, use the -a option: $ ls -a Or a specific file - even with just a part of the name: $ ls *.txt Is can also search a specific place: $ ls Pictures/ rw-r-r- 1 adam adam 43K Nov 2 13:12 notes.txt And together with the -h option you’ll see file sizes in a human-readable format: $ ls -lhĭrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Documentsĭrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Musicĭrwxr-xr-x 2 adam adam 4.0K Nov 2 13:13 Picturesĭrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Videos Just running ls lists all visible files and directories in the current directory: $ lsĭocuments Music Pictures Videos notes.txtĪdding the -l option shows basic information about the files. ![]() If you know where your files are, and you just need to list them or see information about them, ls is here for you. We’ll have a look at three of those: ls, tree, and find. Good news is there are few quite useful utilities in the Linux commandline designed specifically to look for files on your computer. In this post, we’ll have a look at how to make sense of your files on the command line, and especially how to quickly find the ones you’re looking for. And if not challenging, it might be time consuming to find the right one you’re looking for. We all have files on our computers - documents, photos, source code, you name it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |