syntax:
ls -aF
-a option is for hidden files
-F is for directories and executable files
ls -l
ls -al gives you a list of files including hidden files.
document
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.
DIR
In Linux: ls In Windows: dir
ls -al list hidden file also.Hidden files starting with "."
control+x+insert
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.
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.
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.
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).
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
ls -a will show all the hidden files that begin with a dot "."