Add Linux command to list files by date
This commit is contained in:
parent
1ccc5b85e8
commit
4b5ffac3f2
|
@ -80,6 +80,10 @@ sudo lsblk -f -m
|
|||
|
||||
# View the total size of a directory.
|
||||
sudo du -sh /path/to/directory
|
||||
|
||||
# Get all .mp4 files sorted by date and showing date, folder name, file name, and size.
|
||||
# Excludes ._ and .DS_Store files (macOS).
|
||||
find . -type f -name "*.mp4" ! -name "._*" ! -name ".DS_Store" -printf "%CY-%Cm-%Cd %CT %h %f %s\n" | sort -n
|
||||
```
|
||||
|
||||
### Navigation
|
||||
|
|
Loading…
Reference in New Issue