Most Popular
1500 questions
252
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,011
251
votes
10 answers
How can I see what ports are open on my machine?
I would like to see what ports are open on my machine, e.g. what ports my machine is listening on. E.g. port 80 if I have installed a web server, and so on.
Is there any command for this?

Jonas
- 8,217
251
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,079
250
votes
4 answers
How to resize an image through the terminal?
I have Ubuntu 10.04. I have converted image through terminal using the following command:
convert myfigure.png myfigure.jpg
But I want to resize the height and width of the converted image. Is there any way to do this?

Md Kutubuddin Sardar
- 2,641
250
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,635
249
votes
16 answers
How to pin Eclipse to the Unity launcher?
How can I pin eclipse indigo 3.7 I have 'installed' at /opt/ to the taskbar?
I have tried launching eclipse and right-clicking to choose the 'keep in launcher' option. But when I click that icon, after closing eclipse, it doesn't start eclipse.
I…

nunos
- 3,410
- 6
- 23
- 25
249
votes
0 answers
How do I install Oracle Java JDK 7?
If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?

user22744
- 2,501
249
votes
6 answers
Why is Wayland better?
As recently announced by Mark Shuttleworth, Ubuntu will be moving towards using Wayland as its display manager.
What are biggest differences between X11 and Wayland? Why will Wayland make Ubuntu better?

Hillar
- 3,020
249
votes
12 answers
How do I kill processes in Ubuntu?
How do I kill all processes running by my own non-root account?
I have some spinning smbd processes that I caused from my windows machine and so I telnetted into the linux server and I want to kill those spinning processes. I don't have authority…

djangofan
- 3,714
248
votes
15 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
- 2,932
- 7
- 20
- 28
248
votes
2 answers
How do I make my systemd service run via specific user and start on boot?
I just upgraded from Ubuntu server 14 to version 15. I had trouble getting my upstart script working after the upgrade, and read that systemd is the new default. I'm far from a linux expert, so please go easy on me :-)
Here is what my upstart script…

void.pointer
- 2,655
- 2
- 15
- 12
248
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
- 64,798
248
votes
5 answers
How do I enable the "Universe" repository?
How do I get to the Universe Repository in supported versions of Ubuntu?

Dr.C.Badrinathan
- 2,545
248
votes
7 answers
Why does "(base)" appear in front of my terminal prompt?
I'm wondering why I have (base) on the left of my terminal prompt.
If I run source ~/.profile in the terminal, it disappears.
If I close that terminal and reopen a new terminal, (base) is there again.
I'd like to know what it is.
Here's the content…

Jimmy
- 2,583
247
votes
13 answers
Uninstall GRUB and use Windows bootloader
I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and…

mrolive
- 2,625
- 4
- 14
- 10