Most Popular

1500 questions
270
votes
11 answers

How do I start/stop mysql server?

I tried to find in some articles describing how to correctly start & stop mysql server. I found this link: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I ran this command: /etc/init.d/mysql start but I see this error…
user471011
  • 3,569
  • 8
  • 25
  • 19
269
votes
20 answers

How do you reset a USB device from the command line?

Is it possible to reset the connection of a USB device, without physically disconnecting/connecting from the PC? Specifically, my device is a digital camera. I'm using gphoto2, but lately I get "device read errors", so I'd like to try to do a…
cmcginty
  • 6,016
268
votes
4 answers

How do I stop Apache2 from automatically starting on boot?

How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
chip
  • 2,971
267
votes
8 answers

How can I measure the execution time of a terminal process?

I'm trying to measure the execution time of a process that I call via the command line (i.e., I want to find out how long it takes to for the process to finish). Is there any command that I can add to the command calling the process that will…
user848635
265
votes
20 answers

Ubuntu 16.04 ssh: sign_and_send_pubkey: signing failed: agent refused operation

I just upgraded my Ubuntu System from 15.10 to 16.04 by completely wiping the Ubuntu 15 partition from my system. After installing Ubuntu 16.04 I recreated my ssh keys as I forgot to back them up, but whenever I attempt to use ssh I get…
Lektonic
  • 2,753
264
votes
3 answers

How to exclude multiple directories with rsync?

I am trying to backup my home directory using rsync, and I want to exclude some of the directories that contain junk. I want to specifically exclude /home/ben/.ccache and /home/ben/build. Unfortunately the documentation for rsync was information…
Freedom_Ben
  • 9,532
264
votes
5 answers

How do I enable the "Universe" repository?

How do I get to the Universe Repository in supported versions of Ubuntu?
263
votes
10 answers

Can't format Ubuntu installation stick

I've made an USB installer stick from Windows with Ubuntu 16.04 LTS , now I'm trying to format it from Ubuntu. When I try to format I get this error : This partition cannot be modified because it contains a partition table; >please reinitialize…
Nephilim
  • 2,631
263
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,805
  • 2
  • 16
  • 12
263
votes
10 answers

How can I restart pulseaudio without having to logout?

Sometimes the pulseaudio service stops and it doesn't restart itself when I open an audio file with banshee or totem. How I can make pulseaudio start again without having to logout?
gourgi
  • 5,398
262
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,775
262
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?
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
262
votes
6 answers

How to understand the Ubuntu file system layout?

In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely Program Files and Windows. I simply stay away from…
262
votes
11 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,874