Unix Commands
Unix Commands
Commands
By Mogalaiah K
Date : 09/07/2024
© 2024 DXC Technology Company. All rights reserved. November 29, 2024 2
DXC Internal
Topics going to be covered
Compress Files
General Performance
vmstat
free
iostat
CPU Usage
sar
mpstat
Top
Automatic Startup Scripts on Linux
CRON
© 2024 DXC Technology Company. All rights reserved. November 29, 2024 3
DXC Internal
Basic File Navigation
The "pwd" command displays the current directory.
oracle> pwd
/u01/app/oracle/product/12.1.0.2.0
The "ls" command lists all files and directories in the specified directory. If no location is defined it acts on the current
directory.
oracle> ls
oracle> ls -ltr /u01/app/oracle/product/12.1.0.2.0
cd /u01/app/oracle/product/12.1.0.2.0
ls -ltr
oracle> ls -al
The "-a" flag lists hidden "." files. The "-l" flag lists file details.
The "cd" command is used to change directories.
oracle> cd /u01/app/oracle
© 2024 DXC Technology Company. All rights reserved. 4
DXC Internal
Basic File Navigation
The "touch" command is used to create a new empty file with the default permissions.
oracle> touch my.log
The "which" command can be used to find the location of an executable you are using.
oracle> which sqlplus
The "which" command searches your PATH setting for occurrences of the specified executable.
vi editor
df -h
df -k
bdf
top
topas
free -g
du -sh
.bash_profile
.profile
oratab
© 2024 DXC Technology Company. All rights reserved. November 29, 2024 24
DXC Internal
© 2024 DXC Technology Company. All rights reserved.
DXC Internal