Sie sind auf Seite 1von 4

different types of usr

applmgr --applicatio opmn/batches execution

who am i

ls -l long list of files

ls -al hidden files
ls -lrt --long list,revers order with time

date - displays date and time of the server

ls cais*

ls *.sql

ls * | wc -l

man displays online manual pages

pwd present working directory

mkdir --create directory

mkdir dir1

mkdir dir1 dir2

mkdir -p dir1/dir2/dir3 create with parent directories

rmdir dir1/dir2/dir3 -->remove onty dir3

rmdir dir1/dir2 --> removes only dir2

rmdir dir1

rmmdir dir1 dir2

users -list all users

who -who are currently logged in

who -q :only name and numer of users currently loggedin


who am i

wc cais.IKEA00823277_ifl_msg_data.sql

who | wc -l count occurences

cd :change directory

cd .. moves to parent directory

cd ~ or cd $HOME cd enter : moves to home directory of user

vi editor

cat filenmae ==display outout of file

view filename

cat file1 file2 file 3 display concatenated content of three files

cat -n file1 ==display line numbers

cp file1 file2 copy from file 1 to file2(if file2 does not exist ,it will create)

cp -i file1 file2 -ask user confirmtion to overwrite file2

cp /home/user1/file /home/user/

cp -r /home/user/10/dir1 /hom2/user2/dir1ss

mv -i file1 file2 : ask confirmation before overriting file2

rm file1

rm -i file1 file2

rm -r dir-- delete all recerusive files (directory and and its sub directories

rm -rf ----

diff file1 file2s

hard link soft link


r 4
w 2
x 1

permission levels

chmod 750 file1

chmod -R 750 dir1

lpr command -t print files from unix

lprm -to cancel queued print job

lpq -shown waiting pritings

ps prcesses which r runig

echo $SHELL


$TEST="Unix Programming"
$echo $TEST


CUST_TOP =/oracle/xxtl --set variable like apps and show

echo $CUST_TOP
local to file

if u add ito profile,we can refer any where

There are three types of quotes
" Double Quotes �
literal meaning of string except \ & $
Single quotes

is not interpreted (remains unchanged)
Single quotes

is not interpreted (remains unchanged)
` Back quote �
interpreted as command

echo "Today is date"

echo "today is 'date'"
echo 'Todaay is `date`'

su username --> login into the username

su - username --> login into the username by executing its profile


-- find command

find . - name "file*" -print --? display files or directires having name as file

find . - name "file*' -type d -print -- display only directores

find . -name "file*" -type f -print -- display only files

find . -name "file*" -type f -print > /dev/null

who |grep "prmut"

---VI editor

save and exit command

:w --save and contine editing

:q quit
:q! quit without saving
:wq -- save.write and quite
:w<file> similar to save as

---to set line numbers and unset

set nu
set nonumber

cat -n file name --display with numbers

ls file.txt > file2.txt

ls file1.txt >> file2.txt

tail file name -->last 10 lines

tail -ns5 file name

head filename

head -n5 filenames

df -h
--shell type:below is bourne shell
echo $0

exit command

discard output of commad

command > /dev/null