-->

IBM Integration Bus (IBM Message Broker)

This site is under construction

Monday, May 2, 2016

Unix Commands






          Q) To know about file Size in Unix 
             A)  du -sk <filename>
                 (this returns size in kilobytes)


         Q) To know which Unix shell scripting you are using
           A)  enter below command in Unix command line(terminal).
                 echo $0

    
         
        Q) To know about the all files size in the folder is
         A) du -sk *


         Q) Command used to go to IBM Explorer in the UNIX server
          A) . /opt/software/mqsi/9.0.0.3/bin/mqsiprofile


         Q) Command to know  start date of the file ?
          A) head <filename>


         Q) To know operating system and version
         A) uname -a

  
        Q) To Check Particular file Length in Unix
         A) ls -l filename


       Q) To count the specific word in file
        A) grep -c "enter string name which want to count"  filename

     
      Q) Command to Copy a file into another directory
     A) cp <givefilenamewhichyouwanttocopy>
     <pathofdirectorywhereyouwanttocopy>/<givethenewfilename>

      
      Q) Command to Copy a file into same directory
     A) cp <givefilenamewhichyouwanttocopy> <givethenewfilename>

  
      Q) Command to delete a file
      A) rm <filename> 

      Q) Command to delete a directory
      A) rmdir <directoryname> 


No comments :

Post a Comment