the command is - ls there are other options and flags for the ls command which can be viewed by typing man ls if you type 'man ls' in a Google search, it will show you the same manual
ls
ls
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.
ls -lR directory
In UNIX, type `grep -l computer *`. This should list the names of all files that contain the word 'computer' in alphabetical order.
A directory list usually contains lists of information. An example of a physical directory list would be the Yellow Pages. For computers, a directory list would either be a list of files or a list of links to other files.
Folder or files which start with . will not not be appear in directory list Amit Gupta
There are several ways to do this (typical Unix ...). you could execute the following command: du | sort -n | tail -6 The 'du' command lists disk usage by listing a file name and size per line, then use the sort command to list numerically, and the last 6 will be the 6 largest.
This is usually called the directory or directory listing.
ls list directory content-l long format, displaying Unix file types, permissions, number of hard links, owner, group, size, date, and file name-a lists all files in the given directory, which names begins with .-r Reverse the order of the sort.-t sort the list of files by modification time.This lists the most recently modified files at the end of the listing. ls -latr is a convenient way to see what has changed recently in a directory.
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.
for i in * do if [ -d $i ]; then echo $i directory >> /tmp/directories fi done
DIR
To list the subdirectories in the current directory: find . -maxdepth 1 -type d To list the subdirectories and all their subdirectories: find . -type d