COMPUTER PROGRAMMING FUNDAMENTALS
RASPBERRY PI PROJECT IDEAS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What is the command to list hidden files & directory?
|
ls-l
|
|
ls-a
|
|
ls
|
|
None of these
|
Explanation:
Detailed explanation-1: -ls-a will list all files including hidden files (files with names beginning with a dot).
Detailed explanation-2: -To view hidden files, run the ls command with the-a flag which enables viewing of all files in a directory or-al flag for a long listing of files. From a GUI file manager, go to View and check the option Show Hidden Files to view hidden files or directories.
Detailed explanation-3: -in Linux and Unix systems, the files starting with . (a dot) are hidden files. To see them with the ls command, add-a or-A at your ls.
Detailed explanation-4: -The “ls” command has many options that, when passed, affect the output. For example, the “-a” option will show all files and folders, including hidden ones.
There is 1 question to complete.