How to Do Partitions in Red hat Linux

This section is very helpful to make partitions in red hat Linux through Command line interface.

#fdisk -l

the command is used to check available storage devices on our machine

 #fdisk /dev/sdb

the command is used to enter the device which we are given the path like /dev/sdb
to perform partitions

 m for help

n

n for Add a new partition 

p

p for print the partition table either it is primary or extended

p is the primary partition
e is the secondary partition

In next steps, just press enters for partitions sector selections
finally, we need to select the size example +6G
 +K for Kbs
 +M for Mb
 +G for Gbs
In next step type wq for write and quint for partition table
After completion of partitions 

#partprobe /dev/sdb

the command is used to refresh the partitions table

In this below video we can see practically How to do paritons

How to Find Files in Linux


Here we are going to learn How to search files, directories inc Redhat Linux in the command line interface
It is very useful think by using commands below we can search easily find out the exact location of
the file or directory

#find  




find command shows all files and directories in the current location

#find . -name filename

The command is used to find files and directories by filename in the current location

#find / -name filename

 the command is used to find files and directories by filename in the / (anywhere)

#find / -iname filename

the command is used to find files and directories by filename but the thing is to ignore
capital or small letters example: 7hills, 7Hills

#find . -type f -inmae filename




the command is used to find files only by filename

#find . -type d -inmae directory name

the command is used to find the only directory  by that directory name

 In this below video we can see practically searching files.

Comments

Popular posts from this blog

Awk command with simple examples

Learn Linux in Telugu | Linux complete Free Course in Telugu by 7Hills

rsync Command Examples | rsync Command In Telugu