Basic Unix Commands
Hi Friends
While working with OBIEE for a long time I came across some Basic Unix commands which can be used while performing some admin taks like uploading the repository etc. So i thought of sharing the same with you…..
Below is the lost of the commands and their brief description:
. – specifies the current directory.
cd ~ - user’s home directory
cd .. – move one folder up
set – see all the environment variables
which - to search for a command or file
chmod – to change permissions
chown - to change the owner
chgrp – to change the group
pwd - gives path of the current directory
mkdir – to make a directory
rmdir - to remove a directory
cd – change directory
FILE OPERATON COMMANDS
cat - print contents of a file or concat 2 files
cp - copy file
touch - creates an empty file
rm – remove file
OTHER COMMANDS
man - help
who – tell who all users are logged in UNIX machine
who m i - details about me
time – tells time
history - gives history of previous commands
cal – shows calendar
date – shows current date n time
cntrl+u – erase whole line
cntrl+c - kill or come out
cntrl+h – backspace
cntrl+z - suspend a command
cntrl+s – stop screen from scrolling
cntrl+q – continue scrolling
cntrl+d – exit from an interactive program
grep – search particular string in a file or multiple files
wc – word count in a file
find – used to find files
head – start of file
tail – end of file
diff – compares 2 files
cmp – compares 2 files as input and diaplays 1st line number and char num at which 2 files differ
ps – command to list all processes
write – used to write text on another user’s terminal
Hope it helps…


(8 votes, average: 4.38 out of 5)
Leave your response!