linux_aria

My file bash, and configurate for linux


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

3

direcoty

command

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"
- 

archive

tar

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 zip_teks <target> # otomatis jadi .zip => zip_teks.zip
zip zip.zip <target>

zip -e aria *.txt # encrypt

unzip zip.zip 

search file

find

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