touch file1
echo "text" >> file1.txt
find / -name *filename*
cat file | tr ' ' '\n' | sort | uniq -c
tr ' ' // remove multiple spaces
'\n' // output word per line
Run file1:
. file1
Human readable, Max depth = 1, Sort Human readable
sudo du -hd1 / | sort -h
Sorted size human
ls -Ssh /
PROMPT_DIRTRIM=1
7z a -mx9 -v100m compressedfilename filetocompress
-mx9
compression level "ultra"
-v100m
spilt into 100MB volumes
7z e filename.7z
tar -xvzf filename.tar.gz
sudo apt list --installed | grep -i lx
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
pandoc README.md | lynx -stdin
pandoc -t plain README.md | less
Light Git
git clone --depth 1 https://github.com/EN10/chatbot.git
Files Only No Git
svn export https://github.com/EN10/chatbot/trunk
Only Download Specific Folder
Replace tree/master
with trunk
svn export https://github.com/GoogleCloudPlatform/python-docs-samples/trunk/appengine/standard/ndb/overview
%localappdata%\Lxss\home
echo "date >> time" > time.sh
watch -n 10 bash time.sh