My file bash, and configurate for linux
/tmp => tempoery (file sementara akan terhapus ketika di reboot)
/srv => file server such as ftp, apache, etc
/cdroom => version old for mount iso
df # show disk
df -h # with show k, m, g
df T # type file (xfs, ext, etc)
df -hT / -i # inodes # semacam node gitu
du # disk usage
du ~ -sh # human readable
du ~ -sc # total
du *.txt
du -sh --exclaude="*.txt"
-
tar -cf arcive.tar.gz <target>
# target => folder / file1 file2
tar -xf arvice.tar.gz
tar -cfz a.tar.gz <target> # comprese
tar -tf a.tar.gz
tar -tvf a.tar.gz
zip zip_teks <target> # otomatis jadi .zip => zip_teks.zip
zip zip.zip <target>
zip -e aria *.txt # encrypt
unzip zip.zip
find # show all file withh recursive file for all
find file* # file.txt file.png
find *
find -iname FiLe.TxT # show with unsensitive
find name?? # name01 name03 name13 nameme
* => any string
? => one letter
find ~ -maxdepth 1 # show with depth 1
find -size +10k -size 10M 2>/dev/null