Basic unix commands used in Administration

  • ls –ltr               Shows all the files and sub directories in the  current directory.
  • ls –la                 Shows all the hidden files and directories.
  • df –k .               This command shows the space in a mount.
  • du –sk *            Used to see the size of a directory.
  • top                   Used to get the CPU/Memory Utilization for each process.
  • ps  –eaf  | grep  <User Id>   To get the processes running with particular user id.
  • kill  -9  <Process Id>        To terminate the process.
  • cp  <File Name>  <New File Name> : This command is used to copy a file.
            cp file1.txt newdir
            cp file1.txt  file1bckup.txt
  • rmdir  <Directory Name>                        To remove directory.
  • rm  <File name>                                           To remove file.
  • mv  <File Name>  <New Directory>   To move the files to another directory.
  • chmod 777  <File_Name/Directory_Name>     Gives rwxrwxrwx permissions.
  • chmod  755 <File_Name/Directory_Name>     Gives rwxr-xr-x permissions.
  • chmod 775 <File_Name/Directory_Name>      Gives rwxrwxr-x permissions.
---------------------------------------------------------------------------------------------------------------------------------------------
  • Steps to kill Informatica sessions from Linux.
  • Step 1 : Get process id in sessLog from informatica monitor.
  • Step 2:  Do pstree -p| grep -i session_pid
Which will display process tree line by line, child process will   be displayed at the last which one highlighted in below snapshot.
pstree
  • Step 3 : Do kill -9 child_pid Which will kill only respective session it won’t affect to pmserver process.
Kill

1 comment:

  1. It is very nice to see this very informative blog. I am in learning phase of admin.. It will be mnore useful if you provide more activities of the admin daily tasks.

    ReplyDelete

Featured Post

Cloud : A Trendsetter Technology