truncate -s
touch blank.txt
truncate -s 16 blank.txt
hexdump -C blank.txt
head -c 41 longfile > testfile
tar -cf
tar -cf a.tar a
Unzip by Shell doesn't change permissions and file creation date.
tar -xvf a.tar
ls -ptm
sorted by file creation, and use comma to seperate
git log --format='%H' -n5
limit to 5 commits, Shows only the hash
git ls-files --others --ignored --exclude-standard
- git ls-files: lists the files that are in the repository.
- --others: Displays files that are not in the GIT index.
- --ignored: Displays the ignored files that were defined in .gitignore.
- --exclude-standard: lists the files deleted by default.
patch a sw.diff -o b
find . -type f ( -name '##' -o -name '~' ) -print -delete
magic file
file -m ft_magic.mgc -k -i testfile
The -k option shows all matches if there are multiple.
Top comments (0)