===================================================================================
============
Donwload Oracle Virtual Box -
https://www.virtualbox.org/wiki/Downloads
===================================================================================
============
Download RHEL 9.0 ISO File -
For download RHEL9 ISO RED HAT login account required,create login account use
following link
https://www.redhat.com/wapps/ugc/register.html?_flowId=register-
flow&_flowExecutionKey=e1s1
Download RHEL 9.0 ISO File - (x86_64 DVD ISO 9.*)
https://developers.redhat.com/products/rhel/download
===================================================================================
============
Google Drive Link for RHEL9 & Virtual Box:
https://drive.google.com/drive/folders/1iPHSEVO9Upo2l7C3lA66_8CNAdDzBBxC?
usp=drive_link
I. mkdir
mkdir command use for create directory
-----------------------------------------------------------------------------------
------------------------------------
1. create sigle directory
#mkdir /india
#ls /
-----------------------------------------------------------------------------------
-------
2. create multiple directory
#mkdir /city1 /city2 /city3
#ls /
-----------------------------------------------------------------------------------
-------
3. create number of directory
#mkdir /city{4..14}
#ls /
-----------------------------------------------------------------------------------
-------
4. create directories inside directory
#mkdir -p /usa/washington/whitehouse
-p parantal permission
==============================================================================
II. touch
touch command use for create empty files, touch not supportable for write, edit,
read file etc.
,1. create single file
#touch /note.txt
-----------------------------------------------------------------------------------
-------
2. create multiple files
#touch /note1.txt /note2.txt /note3.txt
-----------------------------------------------------------------------------------
-------
3. create number of files
#touch /note{4..40}.txt
==============================================================================
III. rm
rm command use for delete/remove file and directories.
Syntax
#rm <option> <name of file/dir>
Options
-r recursive
-v verbose
-f forcefully
-----------------------------------------------------------------------------------
-------
1. remove single file
#rm -rvf /note.txt
-----------------------------------------------------------------------------------
-------
2. remove multiple file
#rm -rvf /note1.txt /note2.txt /note3.txt
-----------------------------------------------------------------------------------
-------
3. remove number of files
#rm -rvf /note{4..20}.txt
-----------------------------------------------------------------------------------
-------
4. remove all file/dir which start note character
#rm -rvf /note*
-----------------------------------------------------------------------------------
-------
5. remove all files which have .txt extension
#rm -rvf /*.txt
-----------------------------------------------------------------------------------
-------
6. remove directory which start with Do character
#rm -rvf /root/Do*
-----------------------------------------------------------------------------------
-------
7. remove all contents inside root directory
#rm -rvf /root/*
-----------------------------------------------------------------------------------
-------
8. remove root directory
#rm -rvf /root
=======================================================================
IV. cat
IV. cat
,cat command use for create file, write file, read file and append file but cat
command not support to edit existing file.
Syntax:
#cat <options> <name of file>
Options
> create/write
>> append
< read ( default )
----------------------------------------------------------------------
eg.
1. create file with cat commnad
#cat > /note.txt
pune is good city
pune is IT city
pune is educational city
Press "ctrl+d" for save and exit
#ls /
----------------------------------------------------------------------
2. read file
#cat < /note.txt
or
#cat /note.txt
----------------------------------------------------------------------
3. append file
#cat >> /note.txt
pune is smart city
Press "ctrl+d" for save and exit
for read
#cat /note.txt
Press "ctrl+d" for save and exit
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
V. cp
cp command use for copy and paste.
Syntax:
#cp <options> <source file> <dest file>
Options
-r recursive
-v verbose
-f forcefully
eg.
1. copy and paste note.txt
#cp -rvf /note.txt /usa/
-----------------------------------------------------------------------------------
---------------
2. copy note 1to5 files and paste
#cp -rvf /note{1..5}.txt /usa/
-----------------------------------------------------------------------------------
---------------
3. copy all note file and paste
#cp -rvf /note*.txt /usa/
-----------------------------------------------------------------------------------
---------------
, 4. copy all .txt files and paste
#cp -rvf /*.txt /usa/
-----------------------------------------------------------------------------------
---------------
5. copy all file/dir which start with "Do" character and paste
#cp -rvf /root/Do* /usa/
-----------------------------------------------------------------------------------
---------------
6. copy all contents present inside /root directory and paste
#cp -rvf /root/* /usa/
-----------------------------------------------------------------------------------
---------------
7. copy /root directory and paste
#cp -rvf /root /usa/
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
VI. mv
mv command use for cut/paste file/dir and rename file/dir
-----------------------------------------------------------------------------------
-
1.cut note.txt and paste
#mv /note.txt /aws
-----------------------------------------------------------------------------------
-
2. cut note{1..5}.txt and paste
#mv /note{1..5}.txt /aws
-----------------------------------------------------------------------------------
-
3. cut all note file and paste
#mv /note* /aws
-----------------------------------------------------------------------------------
-
4. to rename directory ( old name aws and new name amazon )
#mv /aws /amazon
-----------------------------------------------------------------------------------
-
5. to rename and cut/paste at a time ( cut amazon directory and paste with name
cloud inside usa )
#mv /amazon /usa/cloud
-----------------------------------------------------------------------------------
----------------------------------------------------------------
V. vim ( Visual IMprove )
vim is improve version of vi command which was popularly used in unix OS.
vim is use for create, wirte, read, edit append etc.
It work in 3 important mode
1. command mode
2. insert mode
3. extended mode
-----------------------------------------------------------------------------------
-------
eg.
#vim /pune.txt
draw digram
-----------------------------------------------------------------------------------
-------
1. operation in insert mode