Listing Files Commands (ls) + Metacharacters (*,?,[ ]) - UNIX/LINUX Tutorials for beginners

Опубликовано: 06 Октябрь 2024
на канале: Gourav Suri
6,613
77

Commands used in this video:

ls : Lists the contents of the current or specified directory

ls -a : Lists the hidden files too

ls * : Lists the sub-contents of each contents of the current or specified directory

ls p* : Lists all the files whose names begin with p

ls ?ain : Lists all four character filenames which ends with 'ain'

ls [aeiou]* : It indicates that the first character of the filename to be listed must be any one of the letters given within the square brackets and the remaining can be anything

ls [!aeiou]* : ! symbol complements