Category: Linux

mac-apple-logo 0

pipe the output to the file

When you want to save the ter­mi­nal logs into an exter­nal file, use the fol­low­ing com­mand. <com­mand> 2>&1 | tee foo.txt Replace, the com­mand with your com­mand. For exam­ple, grunt unittest More details about…

git 0

How to add multiple ssh keys for a single user

If you are using mul­ti­ple email addresses for dif­fer­ent ser­vices and each of them require you to enter a dif­fer­ent pub­lic key, then you need to have a pub­lic key gen­er­ated locally for each…

java 0

[Resolved] Remove Java completely from Mac / Linux

sudo rm –fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm –fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm –fr ~/Library/Application\ Support/Java # Remove Java run­time from the root of your sys­tem cd /Library/ rm –rf Java/ Ver­ify Java in unin­stalled java…

ubuntu-icon 0

Rvm install fails due to errors in apt-get update

Your RVM instal­la­tion is fail­ing because apt-get update has errors. The sim­plest way to fix this is 1) Iden­tify the errors dur­ing apt-update sudo apt-get update | grep “Failed” 2) Com­ment out the fail­ing ppa’s…

ubuntu-icon 0

rename extension of multiple files linux

I recently wanted to rename all my jpg files to png files in one folder on my ubuntu device. The fol­low­ing com­mand did the trick for me. rename ‘s/.jpg$/.png/’ *.jpg