Unix Commands
Windows - DOS - Command line interpreter
Redhat - Unix - Cli
Many flavours
Redhat - 90% - 8,7.10
Oracle Linux (same redhat)
AIX(IBM)
Solaris (Oracle)
Ubunto (Open Source)
Centos(O-S)
HP-Unix (HP)
Terminal
On Desktop - > right click - > Open Terminal
Finding hostname/servers/host/device/box/asset
#hostname
Finding ipaddress
#ifconfig
in windows : ipconfig
Finding usage
#df -h
In kilobytes
#df -k
Changing Directory
#cd /softwares
#cd /orabackup
Present working directory
#pwd
Listing files and folders
#ls
with details
What permissions/file/folder/owner/group/public?
#ls -ltr
eg:
drwxr-xr-x root root testd
-rwxr--r-- oracle oinstall testf
The first character defines
d - ? directory / folder
- - ? file
r - read
w - write
x - execute
Owner group public
rwx r-x r-x
root root all
rwx r-- r--
oracle oinstall all
Creating empty file
#touch testfile
If your filesystem goes in to read only mode,
to test it , will create empty file with touch.
Inform to system admin team
Creating/Make Directory/folder
#mkdir testd
Removing a Directory
#rmdir testd
Removing a file
#rm testfile
move to previous directory
#cd ..
Removing a directory with subfiles and folders
#rm -rf testd
Note:
-r ? recursive ( including subfiles and folders)
-f ? force
Copying a file
#cp testfile /orabackup
Moving afile / Renaming a file
#mv testfile testf
or
#mv testfile /orabackup
Windows - DOS - Command line interpreter
Redhat - Unix - Cli
Many flavours
Redhat - 90% - 8,7.10
Oracle Linux (same redhat)
AIX(IBM)
Solaris (Oracle)
Ubunto (Open Source)
Centos(O-S)
HP-Unix (HP)
Terminal
On Desktop - > right click - > Open Terminal
Finding hostname/servers/host/device/
#hostname
Finding ipaddress
#ifconfig
in windows : ipconfig
Finding usage
#df -h
In kilobytes
#df -k
Changing Directory
#cd /softwares
#cd /orabackup
Present working directory
#pwd
Listing files and folders
#ls
with details
What permissions/file/folder/owner/
#ls -ltr
eg:
drwxr-xr-x root root testd
-rwxr--r-- oracle oinstall testf
The first character defines
d - ? directory / folder
- - ? file
r - read
w - write
x - execute
Owner group public
rwx r-x r-x
root root all
rwx r-- r--
oracle oinstall all
Creating empty file
#touch testfile
If your filesystem goes in to read only mode,
to test it , will create empty file with touch.
Inform to system admin team
Creating/Make Directory/folder
#mkdir testd
Removing a Directory
#rmdir testd
Removing a file
#rm testfile
move to previous directory
#cd ..
Removing a directory with subfiles and folders
#rm -rf testd
Note:
-r ? recursive ( including subfiles and folders)
-f ? force
Copying a file
#cp testfile /orabackup
Moving afile / Renaming a file
#mv testfile testf
or
#mv testfile /orabackup