IMPORTANT DIRECTORIES AND COMMANDS IN LINUX
- 1 Directory Structure
- 2 Basic Commands
1. Files are put in a directory.
2. All directories are in a hierarchical structure (tree structure).
3. User can put and remove any directories on the tree.
4. Top directory is “/”, which is called slash or root.
5. Users have the own directory. (home directory)
This contains files that are essential for correct operation of the system. These are available for use by all users.
Provides a location for mounting devices,such as remote filesystems and removable media
This is where user home directories are stored.
This directory is used to store files which change frequently, and must be available to be written to.
Various system configuration files are stored here.
This contains various devices as files, e.g. hard disk, CDROM drive, etc.
This is the root (administrator) user's home directory.
Binaries which are only expected to be used by the super user.
Has the bootable Linux kernel and boot loader configuration files(GRUB).
Contains user documentation,games,graphical files,libraries(lib),etc..
One command consists of three parts, i.e. command name, options, arguments.
Example:- [cswug~]$ commandname optionA optionB argument1 argument2
How to run commands
1. Between command name, options and arguments, space is necessary.
2. Opitions always start with “”
Example:- cd .. ls –l .bashrc mv fileA fileB
show files in current position
copy file or directory
move file or directory
remove file or directory
show current position
display file contents
display file contents pagewise
display online manual
create new user account
delete user account
mount file system
unmount file system
show disk space usage
reboot or turn off machine