Basic Linux
Basic Linux
Information
• /bin
Binaries (executables). Basic system programs and utilities (such as bash).
• /sbin
System binaries. Basic system administrative programs and utilities (such as fsck).
• /etc
Et cetera. Systemwide configuration scripts.
Of particular interest are the /etc/fstab (filesystem table), /etc/mtab (mounted
filesystem table), and the /etc/inittab files.
• /dev
Device directory. Entries (but not mount points) for physical and virtual devices.
• /proc
Process directory. Contains information and statistics about running processes and
kernel parameters.
• /sys
Systemwide device directory. Contains information and statistics about device and
device names. This is newly added to Linux with the 2.6.X kernels.
• /mnt
Mount. Directory for mounting hard drive partitions, such as /mnt/dos, and physical
devices. In newer Linux distros, the /media directory has taken over as the
preferred mount point for I/O devices.
• /media
In newer Linux distros, the preferred mount point for I/O devices, such as CD/DVD
drives or USB flash drives.
• /var
Variable (changeable) system files. This is a catchall "scratchpad" directory for
data generated while a Linux/UNIX machine is running.
• /var/log
Systemwide log files.
• /lib
Systemwide library files.
• /tmp
System temporary files.
• /boot
System boot directory. The kernel, module links, system map, and boot manager
reside here.
Altering files in this directory may result in an unbootable system.
1 - #Touch = Command can be used for creating a Blank/Empty file. Also It can
change the time of file or directory.
#Touch file name = For changing the file time stamp.
#Touch .filename.txt = For hiding the file from ls command.
3 - #echo "the text you want to enter in file" > "file name" = This Command can be
used for putting text into a file.
9 - #mv "source file name" "destination file path" define a new name here if you
want to change = For moving a file.
#mv "old name" "new name" = For rename the file.
10 - #cp "source file path" "destination file path" = For copying the file.
#cp -r "source path" "destination path" = For copying a directory.
#-v = For printing what has been done.
#-p = For transferring ownership and time stamp.
Note = You can use three of them together for multiple actions.
14 - #whoami - For finding which user account you are logged in currently.