linux:file_operations

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:file_operations [2018/05/30 14:49] mguptonlinux:file_operations [2022/08/19 19:26] (current) – [Mount CIFS/SMB Share] mgupton
Line 19: Line 19:
 find /c/home/db/ -mtime -7 -type f -name '*.py' | sed -r 's|/[^/]+$||' | sort | uniq find /c/home/db/ -mtime -7 -type f -name '*.py' | sed -r 's|/[^/]+$||' | sort | uniq
 </code> </code>
 +
 +List all directories modified in the last 7 days.
 +<code bash>
 +find ./ -mtime -7 -type d
 +</code>
 +
 +Limit the recursion to only show directories in the current directory.
 +<code bash>
 +find ./ -maxdepth 1 -mtime -7 -type d
 +</code>
 +
 +<code bash>
 +find ./ -maxdepth 1 -type d -mtime -7 | xargs -I {} ls -dhl {}
 +</code>
 +
 +===== Mount CIFS/SMB Share =====
 +<code bash>
 +sudo mount -t cifs -o username=admin,rw,iocharset=utf8,file_mode=0755,dir_mode=0755 //10.0.0.1/documents /mnt/win
 +</code>
 +
  • linux/file_operations.1527691747.txt.gz
  • Last modified: 2018/05/30 14:49
  • by mgupton