answersLogoWhite

0


Best Answer

syntax:

ls -aF

-a option is for hidden files

-F is for directories and executable files

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

ls -l

ls -al gives you a list of files including hidden files.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What switch to the LS command lets you view a list of files and their type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command displays a list of files and direcories at the command line?

document


What is the command to be used to see all the files in a directory?

The command in a terminal is: ls (short for List). This will list the files in the current directory. Whilst in the Home directory, to list the files in a different directory, for instance Videos, use: ls Videos.


What is the command to list all files and sub directories in a directory?

DIR


What command list basic directory files?

In Linux: ls In Windows: dir


What Linux command lists hidden files and file attributes?

ls -al list hidden file also.Hidden files starting with "."


What command sends a list of files in the working directory to the printer sorted by size?

control+x+insert


What is the command to list only one file?

Assuming you are looking for a specific file in a location, it's as simple as ls <name of file.> assuming you are in the directory you expect it to be in.


What commands will list the files in the working directory in their reverse alphabetical order?

ls | sort -r Use ls command to list all files, in the present directory. Then pipe '|' the output of the ls command to sort -r. The -r option will reverse the sort.


In ms dos which command can sort files in a directory list?

dir Lists all files and directories in the directory that you are currently in. dir /ad List only the directories in the current directory. If you need to move into one of the directories listed use the CD command. dir /s Lists the files in the directory that you are in and all sub directories after that directory, if you are at root "C:\>" and type this command this will list to you every file and directory on the C: drive of the computer. dir /p If the directory has a lot of files and you cannot read all the files as they scroll by, you can use this command and it will display all files one page at a time. dir /w If you don't need the info on the date / time and other information on the files, you can use this command to list just the files and directories going horizontally, taking as little as space needed. dir /s /w /p This would list all the files and directories in the current directory and the sub directories after that, in wide format and one page at a time. dir /on List the files in alphabetical order by the names of the files. dir /o-n List the files in reverse alphabetical order by the names of the files. dir \ /s |find "i" |more A nice command to list all directories on the hard drive, one screen page at a time, and see the number of files in each directory and the amount of space each occupies. dir > myfile.txt Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen.


Why are hidden files on a DOS disk?

Hidden files are files stored on the disk, but which do not show up when you list a directory of the disk.In DOS, you normally type the command DIR to view the files on a disk. If you would like to see hidden file names, use the command DIR /AH (A=Attribute; H=Hidden).


How do you count how many files are in a folder in Linux machine?

I suppose the easiest way to do that would be to use ls and pipe it to word count ls | wc -l the -l switch is for number of Lines for all files, including hidden files (ie .xfce4) use ls -a | wc -l hope i could help


What is the Linux command to list all filenames which has dot at the end?

ls -a will show all the hidden files that begin with a dot "."