Introduction to Directory
A directory is a location where files such as ordinary, special, or directory are kept in a list. It stores file name and its related information. UNIX uses a hierarchical structure for organizing files and directories. This is known as a directory tree. It has a single root node which contains the slash character (/), and all other directories are contained below it.
Listing files and directories
The ls command is used to display all files and directories in the current directory.
- To display all files in the current directory use ls command. By default it displays all files in alphabetical order except hidden files. But if current working directory is empty your command will get prompt immediately.
Here LS command is used with (more…)
This content is restricted to site members. If you are an existing user, please log in. New users may register below.