Category: Command Line
Remove Empty Characters at End of Lines
April 18, 2008
Remove empty characters at the end of each row sed -e ‘s/ *$//’ file.txt
Fish Shell Command History Meme
April 16, 2008
Use this command if you want to know your command usage stats in the fish shell. grep -v “^\#” “.config/fish/fish_history”|awk…
Remove all EXE files
April 15, 2008
Removes all exe files in the current directory tree. Useful to clear virus from flash drives. find . -name “*.exe”…
First Two Lines
April 13, 2008
View first two lines of a file head -2 file tail -2 file # for last 2 lines
Schedule a Download
April 4, 2008
Start a download at any given time echo ‘wget -c www.example.com/files.iso’ | at 09:00
Update Package List in Apt
April 2, 2008
Update the package list – do this after you change the source in /etc/apt/sources.list . apt-get update
Recent Comments