Most Popular
1500 questions
262
votes
5 answers
How to create a permanent "alias"?
If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" alias, one that exists in every terminal session?
Zango
- 5,133
261
votes
3 answers
How do I add a kernel boot parameter?
I need to add the boot parameter foo=bar to my kernel. How can I do this once for testing, and permanently if testing was a success?
htorque
- 66,134
261
votes
9 answers
How do I uninstall MySQL?
I installed MySQL using sudo apt-get . Now I need to remove it from my system. How can I do that?
batman
- 8,101
259
votes
16 answers
How do I show the git branch with colours in Bash prompt?
I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a colored prompt, if the terminal has the capability;…
u123
- 3,062
- 7
- 22
- 28
258
votes
12 answers
How do I install a different Python version using apt-get?
How can I install a different version of Python using apt-get? Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package manager, as that's what it's there for. Surely…
AgileZebra
- 2,683
258
votes
16 answers
How do I disable X at boot time so that the system boots in text mode?
Is it possible to disable X at boot time? I'm setting up a server so it would be nice if it wouldn't load the graphical interface every time I boot.
Olivier Lalonde
- 60,701
258
votes
20 answers
How do I add a DNS server via resolv.conf?
Is /etc/resolv.conf useless in Ubuntu 12.04 LTS (Precise Pangolin)? I see that the DNS server information is stored in NetworkManager now. The nmcli command line tool can list that for you. If I want to add one more DNS server, will adding it to…
PnotNP
- 3,209
257
votes
18 answers
How do I free up disk space?
My Ubuntu cloud server has left only 900MB of disk space. I'll just empty the directory /tmp and wondering if there is any other location to clean up.
user3215
- 5,495
257
votes
13 answers
How to open a PDF file from terminal?
I used to work on the Mac terminal before and I used: open file2open.pdf and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I get this error message: Couldn't get a file descriptor…
yayu
- 3,431
257
votes
7 answers
Can I move the Unity launcher?
I can’t get used to the new Unity system. I’d like to move the left Unity panel to the bottom of screen (like Windows 7 – more similar is better). But I can't find a way. Is it possible?
Benjamin
- 10,229
257
votes
10 answers
How to access a shared folder in VirtualBox?
I followed the steps for sharing folders between Windows 7 and Ubuntu in VirtualBox. Despite that the folder appears with a X sign and gives me the following message when a try to open it: The folder content could not be displayed When I choose…
userInThisWorld
- 2,705
- 3
- 18
- 11
257
votes
7 answers
Why ~/.bash_profile is not getting sourced when opening a terminal?
Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to ~/.bash_profile export JAVA_HOME=/usr/lib/jvm/java-6-openjdk…
Viriato
- 2,781
- 3
- 16
- 10
256
votes
4 answers
What does an "exec" command do?
I have seen exec command used inside scripts to redirect all output to a file (as seen in this ). But in simple words, what does it do?
a06e
- 14,313
256
votes
3 answers
What is the difference between /etc/init/ and /etc/init.d/?
What is the difference between /etc/init/ and /etc/init.d/ ? More generally, what meaning does the .d suffix convey to a directory?
Olivier Lalonde
- 60,701
255
votes
5 answers
Can I make Tab auto-completion case-insensitive in Bash?
Ubuntu's Terminal uses case-sensitive auto-completion, as would be expected for Linux. But I think sometimes it would be more convenient to use a case-insensitive one instead, to save you having to be accurate while starting a name, and would…
mwfearnley
- 3,527
- 2
- 24
- 31