Most Popular

1500 questions
101
votes
6 answers

How to install build-essential?

I am trying to install G++ compiler in Ubuntu 13.10. It told me I needed to install the build-essential package. I have tried the below code sudo apt-get update sudo apt-get install build-essential It gives me this error: Reading package lists...…
101
votes
6 answers

How do I resume a release upgrade?

Yesterday I started the upgrade from [one version of Ubuntu to the next], but I interrupted it because it was taking too long. Now if I restart it, it doesn't proceed. Is there any possibility to clean the mess it left when I interrupted it and make…
Dave
  • 1,063
101
votes
7 answers

Is there an apt command to download a deb file from the repositories to the current directory?

I am often interested in the installation triggers (postinst, postrm) or certain parts of packages (like /usr/share and /etc ). Currently, I am running the next command to retrieve the source code: apt-get source [package-name] The downside is, this…
Lekensteyn
  • 178,864
101
votes
7 answers

Selecting text in the terminal without using the mouse

I am about to press enter to run a command in terminal, but before doing that, I want to copy the command to clipboard without using the mouse. How? If you're somewhere other than the terminal, Ctrl + Home does it. Is there a way of arbitrarily…
Strapakowsky
  • 12,344
101
votes
4 answers

Backspace in insert mode in vi doesn't erase the character

I am new to vi, actually I have started learning vi from today and I have got stuck at the behavior of the backspace key. Actually when I fired up vi on my Ubuntu 12.04 for the first time my backspace key was working normally but after that it has…
101
votes
2 answers

How to install the locate command?

I wish to have the command locate in ubuntu 12.04 (which is used for finding files. I believe there is such a command but I cannot see it in ubuntu 12.04 Is it part of any package?
JVIyer
  • 1,011
  • 2
  • 7
  • 3
101
votes
9 answers

How to run a script without closing the terminal?

I have a script in file bla.sh and it is executable. When I click on it, the script is executed and the window is closed. I'd like the window to stay open . Something like command cmd /k** command in Windows. P.S. I don't want to use pause , but I…
UAdapter
  • 17,987
101
votes
7 answers

Is there an offline command-line dictionary?

Is there any command line offline dictionary? I know that there are some like StarDict and Artha but how about one in the command line? Also, I tried dict but it is an online dictionary.
PALEN
  • 1,151
101
votes
5 answers

Why does "ps aux | grep x" give better results than "pgrep x"?

I've just tried the following command on my Ubuntu, it doesn't show a thing: pgrep php5 shouldn't it return the process ID of php5 (which the following command just does)?: ps aux | grep php5 So, what's the difference between these two commands?
xczzhh
  • 2,205
101
votes
8 answers

Ubuntu Software not loading properly

In my freshly installed Ubuntu 20.04 LTS, Ubuntu Software is not loading properly. It is loading only Editor's Picks but nothing else. Installed tab is empty and search is not working as well. My internet connection is perfectly working and I am not…
digiwizkid
  • 2,635
100
votes
5 answers

How to remove nodejs from Ubuntu 16.04?

Steps to replicate: Ubuntu 16.04 xenial (x86-64) sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm I want to uninstall nodejs and npm and have seen several posts which suggest this is the most common way: sudo apt-get purge…
user1063287
  • 2,255
100
votes
0 answers

How do I see which ports are open?

I am running a web server on a machine with Ubuntu 11. Everything is accessible from the local network, but not from outside. What can I do to check to make sure the appropriate ports are open? I am relatively new to Ubuntu and server management, so…
CoderJK
  • 1,129
100
votes
4 answers

How to execute a script in a different directory than the current one?

I tried executing a script with this command: ./home/user/scripts/someScript but it doesn't work: No such file or directory Any ideas?
UAdapter
  • 17,987
100
votes
11 answers

How can I copy/paste files via RDP in Kubuntu?

I recently installed the latest Kubuntu (x64) on my work machine as I am trying to migrate away from Windows. Unfortunately I use RDP very frequently to connect to customer's servers and need to be able to copy files across. I have tried the…
Dai
  • 1,101
100
votes
5 answers

What is the shortcut to move between two Terminator tabs?

When I open Terminator, I can move two Terminator in same tab using Ctrl + Tab . How to move between two Terminator tabs?
1 2 3
99
100