This Blog is all about ETL related Information.It gives information about Datastage ,Informatica,Oracle,SQL,PL/SQL ,Unix,Data warehousing ,Data Modeling and ER Model concepts and FAQ's
Sunday
Unix commands(p-z)
Unix Commands from p to z:
passwd: Allows changing your login password
ps : Lists all of current user's live processes
ps -ef : List all users processes that are executing
pwd: Displays current working directory you are in
rcp filename1 hostb:/usr/local/bin : Copies
filename1 from current host system to hostb, and
places it in the /usr/local/bin directory; The .rhosts or
hosts.equiv files must be setup to allow action
rksh: Starts restricted Korn Shell session
rlogin hostb : Logs into remote host name hostb
rm filename1 : Deletes filename1 from the disk
without recourse
rm -i filename1 : Deletes filename1 after prompting
for verification
rmdir dirx : Deletes directory dirx
rmdir -r dirx: Deletes directory and all contents
rsh: Restricted version of Bourne Shell for security
sar : System Activity Reporter
sh : Bourne Shell command interpreter; Alternative to
Korn Shell and C shell but is the default on most systems; Older version that is losing popularity
sleep 3 : Pauses for 3 seconds and continues
stty sane: Attempts to restore terminal settings after they are hosed; Use CTRL-J with this command
stty erase ^H : Use to reset backspace/delete; ^H is
the key you may want to use for backspace/delete;
su sam: Log on as user sam
su - sam: Log on as sam, and execute his profile too
tail filename1 : Display last few lines of filename1
tail -50 filename1 : Display last fifty lines of
filename1
tail -f : Continually reads updating file; Great for
monitoring a log file while being written
tar -cvf /dev/rmt/0c /usr/bin/* : Tape archive utility;
Copies all files in /usr/bin directory to tape device
/dev/rmt/
tar -xvf /dev/rmt/0 /usr/bin/ : Extracts all files from
tape device /dev/rmt/0 and writes them to /usr/bin/
tar -tvf /dev/rmt/0c : Read tape on device /dev/rmt/0c
and lists contents in verbose mode
tee: Used in scripts to split output to two outputs.
Usually used with a pipe command (|)
tee -a /tmp/filename1: Append the output to filename1 without overwriting its original content
telnet hostb: Create a remote terminal on hostb
touch filename1 : Creates an empty file named filename1; Changes modification time to current time if the file already exists
uname -a: Lists 0/S revision, host name, hardware
uncompress filename1 : Uncompresses file with .Zsuffix, created by compress command previously
uptime : Displays current time, time logged-in,number of users etc
users: Displays current logged-in users in a listing
uucp : UNIX-to-UNIX copy utility; See man pages
view filename1: A read only version of vi editor
w : Combination of uptime, who and ps -a commands
wall : Write to all; Allows entry of message to be sent to line 25 of all terminals; End message with a CTRLD command
wc -l filename1: Utility that counts the number of lines in filename1
wc -c filename1 : Utility that counts the number of bytes in filename1; -m provides number of characters
wc -w filename1 : Utility that counts the number of the
words in filename1
whence filename2: Prints path name location of
executable filename2
which filename2 : Similar to whence command
who – Displays login name, terminal name, date, and time of login, of users currently logged in
who am i : Displays effective user id of user
who -b : Displays date/time of last reboot
who -r : Displays current system run level