Skip to main content

Posts

Featured

Linux command II

netstat -tnlp Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:20000 0.0.0.0:* LISTEN 8692/ssh tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN - -t for tcp -n numeric (no name resolving) -l listening -p display PID and program name netstat -tane (also shows other connection besides listening like ESTABLISHED) netstat -tape List process ps auxwwf (put double w for wide output) f - for creating ascii process tree. ----------------------- grep $username /etc/passwd | cut -d: -f3 cat /etc/passwd | cut -d: -f3 cut will take field using delimiter (here ':'). -f switch will take third field. first command will display UID of the $username. ------------- find /dir -type f \! -user alex '\!' is for 'NOT' or we can use -not instead. ----------------------------------------------------- Great Encyption tool * to encrypt string 'akhadka

Latest Posts

Oracle: Timestamp

Oracle: Load and transform external data into Oracle 9i

Finding the Top Ten Files in a File System

Linux: Find in Files

Oracle: Custom order by

Understading Oracle PCT, MIN MAX EXTENT

Understading Oracle PCT, MIN MAX EXTENT

Fast Delete of Duplicate Rows

Some Linux Commands

Oracle String Aggregation Techniques