How to backup linux files with 7z

  • tar + 7z
    tar cf - <dir/file> | 7z a -si <path_to_archive_file>
    

Cool one-line find

  • Finding # of files in a folder recursively
    find . -type f | wc -l
    
  • Finding # of ALL subfolders within a folder recursively
    find . -type d | wc -l
    
  • Find # of folders ONLY in current folder
    find . -maxdepth 1 -type d | wc -l
    


Comment: Github Issue