COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
ls-d
|
|
ls-F
|
|
ls-a
|
|
ls-l
|
Detailed explanation-1: -The ls command is a widely used Linux command. In its simplest form, the command lists files and folders within a directory. However, ls doesn’t list hidden files by default. To show hidden files you must use the-a option, which commands ls to list “all” files and folders (including hidden ones).
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: -ls-a will list all files including hidden files (files with names beginning with a dot). ls-F gives a full listing, indicating what type files are by putting a slash after directories and a star after executable files (programs you can run).
Detailed explanation-4: -To display hidden files or directories, we include the a flag in our ls command. The a flag instructs the ls command to include all files-and not ignore files starting with a dot. Using this command, we can now see both the hidden and visible files in the current directory.
Detailed explanation-5: -First, browse to the directory you want to view. 2. Then, press Ctrl+h . If Ctrl+h doesn’t work, click the View menu, then check the box to Show hidden files.