I am wondering
Why? always ?
[sourcecode language=”bash”]sudo nano file_name[/sourcecode]
[sourcecode language=”bash”]sudo apt-get install whatever[/sourcecode]
[sourcecode language=”bash”]sudo apt-get install -f[/sourcecode]
[sourcecode language=”bash”]sudo apt-get remove[/sourcecode]
Why not just!! Simplify.
Edit your ~/.bash_profile.
[sourcecode language=”bash”]nano ~/.bash_profile[/sourcecode]
and add something like the following lines, which you use on a daily basis.
[sourcecode language=”bash”]
alias snano=’sudo nano’
alias apt-update=’sudo apt-get update’
alias apt-fix=’sudo apt-get -f install’
alias apt-remove=’sudo apt-get remove’
[/sourcecode]
close and re-open it.
Now you can simply use apt-fix instead of typing sudo apt-get -f install
Life made simpler 🙂