ext -- Linux Extended filesystem — the original Linux filesystem
ext2 -- Second extended filesystem,Advanced features to ext
ext3 -- Third extended filesystem, supports journaling
ext4 -- Fourth extended filesystem, supports advanced journaling
ntfs -- Support for Microsoft NT filesystem
The Unity -- Desktop on the Ubuntu
Common Linux Directory Names
Directory and its Usage
/
root of the virtual directory, where normally, no files are placed
/bin
binary directory, where many GNU user-level utilities are stored
/boot
boot directory, where boot files are stored
/dev
device directory, where Linux creates device nodes
/etc
system configuration files directory
/home
home directory, where Linux creates user directories
/lib
library directory, where system and application library files are stored
/media
media directory, a common place for mount points used for removable media
/mnt
mount directory, another common place for mount points used for removable media
/opt
optional directory, often used to store third-party software packages and data files
/proc
process directory, where current hardware and process information is stored
/root
root home directory
/sbin
system binary directory, where many GNU admin-level utilities are stored
/run
run directory, where runtime data is held during system operation
/srv
service directory, where local services store their files
/sys
system directory, where system hardware information files are stored
/tmp
temporary directory, where temporary work files can be created and destroyed
/usr
user binary directory, where the bulk of GNU user-level utilities and data files are stored
/var
variable directory, for files that change frequently, such as log files.
cd
pwd
ls
ls -F forward slash after directory name
ls -RF //Excellent ls command,shows full contents including sub directories.
ls -l //Long Listing
File globbing using *
ls -l my_s*t //my_shirt,my_short
How to enable globstar so that you can do things like ls **/*.c
first check your shell version is Bash 4 by
$0 --verion
now set globstar settings by
shopt -s globstar
it is suggested to restart the shell .
The Linux ls command is an essential and very powerful command for daily usage.mainly used for browsing the contents of directories.its power comes when it is used with the
its options to customize the output.
In order to find the last modified/touched file in a directory we can use ls -Al.
if you want only the last four files that are modified in a directory then the following command will help.
satyendra $ ls -Alt | head -4
total 7668
-rw-r--r-- 1 satyendra Administrators 2359296 Sep 21 21:20 ntuser.dat
-rw-r--r-- 1 satyendra Administrators 262144 Sep 21 21:20 ntuser.dat.LOG1
dr-xr-xr-x 0 satyendra Administrators 98304 Sep 21 20:57 Recent
The –t option shows files by the time they are modified.
head -4 takes the input from ls -Alt and shows only the last 3 modified files.
ext2 -- Second extended filesystem,Advanced features to ext
ext3 -- Third extended filesystem, supports journaling
ext4 -- Fourth extended filesystem, supports advanced journaling
ntfs -- Support for Microsoft NT filesystem
The Unity -- Desktop on the Ubuntu
Common Linux Directory Names
Directory and its Usage
/
root of the virtual directory, where normally, no files are placed
/bin
binary directory, where many GNU user-level utilities are stored
/boot
boot directory, where boot files are stored
/dev
device directory, where Linux creates device nodes
/etc
system configuration files directory
/home
home directory, where Linux creates user directories
/lib
library directory, where system and application library files are stored
/media
media directory, a common place for mount points used for removable media
/mnt
mount directory, another common place for mount points used for removable media
/opt
optional directory, often used to store third-party software packages and data files
/proc
process directory, where current hardware and process information is stored
/root
root home directory
/sbin
system binary directory, where many GNU admin-level utilities are stored
/run
run directory, where runtime data is held during system operation
/srv
service directory, where local services store their files
/sys
system directory, where system hardware information files are stored
/tmp
temporary directory, where temporary work files can be created and destroyed
/usr
user binary directory, where the bulk of GNU user-level utilities and data files are stored
/var
variable directory, for files that change frequently, such as log files.
cd
pwd
ls
ls -F forward slash after directory name
ls -RF //Excellent ls command,shows full contents including sub directories.
ls -l //Long Listing
File globbing using *
ls -l my_s*t //my_shirt,my_short
How to enable globstar so that you can do things like ls **/*.c
first check your shell version is Bash 4 by
$0 --verion
now set globstar settings by
shopt -s globstar
it is suggested to restart the shell .
Linux ls command and its importance in daily use.
The Linux ls command is an essential and very powerful command for daily usage.mainly used for browsing the contents of directories.its power comes when it is used with the
its options to customize the output.
In order to find the last modified/touched file in a directory we can use ls -Al.
if you want only the last four files that are modified in a directory then the following command will help.
satyendra $ ls -Alt | head -4
total 7668
-rw-r--r-- 1 satyendra Administrators 2359296 Sep 21 21:20 ntuser.dat
-rw-r--r-- 1 satyendra Administrators 262144 Sep 21 21:20 ntuser.dat.LOG1
dr-xr-xr-x 0 satyendra Administrators 98304 Sep 21 20:57 Recent
The –t option shows files by the time they are modified.
head -4 takes the input from ls -Alt and shows only the last 3 modified files.