terminal

Update Ubuntu with one cli command

Here is a list of commands to update Ubuntu (or Debian distro) in a with one cli command. Explained version sudo apt update && \ # Update repository sudo apt upgrade -y && \ # Ugprade packages (yes to all) sudo apt dist-upgrade -y && \ # Dist upgrade packages (yes to all) sudo apt autoremove -y && \ # Removes orphaned packages which are not longer needed from the system, but not purges them sudo apt autoclean -y && \ # Cleans obsolete deb-packages, less than clean sudo apt clean # Cleans the packages and install script in /var/cache/apt/archives/ Multiline version sudo apt update && \ sudo apt upgrade -y && \ sudo apt dist-upgrade -y && \ sudo apt autoremove -y && \ sudo apt autoclean -y && \ sudo apt clean One line version (use this one!

Cloc

Cloc: Count Lines of Code If you have ever had the need to analyze the size of the code, the “cloc” can be a good tool. It counts source code lines, blank lines and comments lines. Very useful for a simple code inspect. Check it out this github repo! cloc

VIM - How to show row numbers

Show VIM row numbers Copy/Paste guide Show Numbers set nu Hide Numbers set nonu Long version guide set number or the shortcut set nu and then, this is the new fantastic-oh-my-God Vim: To come back, just type the reverse command: set nonumbers and all gets back clean