notes

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

linux_commands.txt (377B)


      1 Mount a harddrive to a directory in archlinux:
      2 
      3 sudo mount -t exfat /dev/sda1 /mnt/seagate
      4 
      5 Delete all files within a folder that is 7+ days old:
      6 
      7 To list all the files that are 7+ days old:
      8 
      9 find . -type f -mtime +7
     10 
     11 To count all the files that are 7+ days old:
     12 
     13 find . -type f -mtime +7 | wc -l
     14 
     15 To delete all the files that are 7+ days old:
     16 
     17 find . -type f -mtime +7 -delete