UNIX - Linux Commands For Oracle DBAs DBA TEAM - Vikram Gurung - Academia PDF
UNIX - Linux Commands For Oracle DBAs DBA TEAM - Vikram Gurung - Academia PDF
Log In Sign Up
DBA TEAM
Revision History
df command in Linux provides disk space usage information of your file systems.
[oracle@asmdb ~]$ df -h
du command
Display how much disk space is being used by directories.
-a - Shows counts for all files encountered, not only directories.
-k - Use 1024 byte blocks instead of the default 512.
tail
Show last lines of a file.
$tail -500 alert.log #Print only the last 500 lines of the alert log file.
man
man
The Linux command "man" is used at the command line to explain the functions and definitions
of other commands commonly used within Linux. The term "man" is short for manual pages
and gives you a very in-depth explanation of the said command which you are referring to.
$ man ls
$ man chown
"pwd" command displays the present working directory.
The "ls" command lists all files and directories in the specified directory. If no location is defined
it acts on the current directory.
[oracle@asmdb ~]$ ls
[oracle@asmdb ~]$ ls
[oracle@asmdb ~]$ ls –
/u01
al
vi Editor
The default editor that comes with the UNIX/Linux operating system is called vi (visual editor)
The vi editor has three modes, command mode, insert mode and command line mode.
command mode.
(insert at end One "o"
of line), can (open
enter insert mode
new line with
after the "i"
current (insert),
line) or "O""a" (insert
(Open lineafter),
above"A"
current line) commands.
3. Command line mode: One enters this mode by typing ":" which puts the command line
entry at the foot of the screen.
To Exit vi
Usually the new or modified file is saved when you leave vi. However, it is also possible
to quit vi without saving the file.
* :q!<Return> quit vi even though latest changes have not been saved for this vi call
Academia © 2015