User Tools

Site Tools


tutorials:linux_essential_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:linux_essential_commands [2022/07/27 17:23] chkuotutorials:linux_essential_commands [2023/10/03 13:03] (current) chkuo
Line 28: Line 28:
     * examples:     * examples:
       * ''find /PATH -type f -name "*.bam"'': find all files (''-type f'') in ''/PATH'' with the name ''*.bam''.       * ''find /PATH -type f -name "*.bam"'': find all files (''-type f'') in ''/PATH'' with the name ''*.bam''.
-      * ''find /PATH -type d -name "flash'': find all directories (''-type d'') in ''/PATH'' with the name ''flash''.+      * ''find /PATH -type d -name "flash"'': find all directories (''-type d'') in ''/PATH'' with the name ''flash''.
       * These examples are useful for calculating file sizes or clean up.        * These examples are useful for calculating file sizes or clean up. 
       * To calculate all file sizes, pipe the file names to ''xargs'' and ''du''; ''find /PATH -type f -name "*.bam" | xargs du -csh''       * To calculate all file sizes, pipe the file names to ''xargs'' and ''du''; ''find /PATH -type f -name "*.bam" | xargs du -csh''
-      * To remove all files found by the command, pipe the file names to ''xargs'' and ''rm''; ''find /PATH -type f -name "*.bam" | xargs rm''+      * To remove all files found by the command, pipe the file names to ''xargs'' and ''rm''; ''find ./ -type f -name "*.bam" | xargs rm'' 
 +      * To remove all directories found by the command, pipe the directory names to ''xargs'' and ''rm -r''; ''find ./ -type d -name "bwa_*" | xargs rm -r''
   * ''ssh'': OpenSSH SSH client (remote login program)   * ''ssh'': OpenSSH SSH client (remote login program)
     * ''ssh usrname@ip_adress''     * ''ssh usrname@ip_adress''
Line 54: Line 55:
   * ''nice'' and ''renice'': run a program with modified priority. If the server is under heavy load and you need to start a non-urgent large job, please use these.'   * ''nice'' and ''renice'': run a program with modified priority. If the server is under heavy load and you need to start a non-urgent large job, please use these.'
   * ''diff'':   * ''diff'':
 +  * ''wget'': download files
 +    * example: download all '*gz' files in the link; use the '-e' command to force ignore the robot file (use with care)
 +      * ''wget -r --no-parent -e robots=off -A '*.gz' https://www.example.com/files/''
 +
  
tutorials/linux_essential_commands.1658913837.txt.gz · Last modified: 2022/07/27 17:23 by chkuo