Most Popular

1500 questions
459
votes
18 answers

How to force a clock update using ntp?

I am running Ubuntu on an ARM based embedded system that lacks a battery backed RTC. The wake-up time is somewhere during 1970. Thus, I use the NTP service to update the time to the current time. I added the following line to /etc/rc.local…
ysap
  • 6,851
  • 11
  • 34
  • 37
457
votes
3 answers

How do I configure swappiness?

I need a step-by-step, simple and easy way to configure swappiness.
One Zero
  • 26,773
  • 26
  • 87
  • 109
456
votes
8 answers

Easiest way to copy ssh keys to another machine?

I am lazy at home and use password authentication for my home machines. I am ready to move to key based authentication. There are many options on the web on how to do this, including catting then sshing the key over, scping the key over directly,…
Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
453
votes
12 answers

How do I upgrade to a newer version of Ubuntu?

What are the different ways I can use to upgrade Ubuntu from one release to another?
rakshith
  • 1,249
  • 3
  • 10
  • 6
452
votes
12 answers

How do I move all files from one folder to another using the command line?

I would like to know how could I move all files from a folder to another folder with a command line. Let's say I'm in my Downloads folder and there are a 100 files that I would like to move to my Videos folder, without having to write all the files…
Michael
  • 4,521
  • 3
  • 14
  • 3
451
votes
2 answers

Mount error: "unknown filesystem type 'exfat'"

When trying to mount an exfat filesystem, I get the following error: Error mounting /dev/sda6 at /media/gkp/Backup: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/gkp/Backup"' exited with non-zero exit status…
Ganesh
  • 4,519
  • 2
  • 12
  • 3
449
votes
9 answers

How do I install Python 3.6 using apt-get?

I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work. So, how would I go about it? (I'd preferably not build it on my own) I'm using Ubuntu 16.04.
Olian04
  • 4,633
  • 3
  • 11
  • 16
447
votes
10 answers

How can I update all Snap packages?

I know that I can update a snap package using sudo snap refresh But is there a way to update all snaps, like sudo apt dist-upgrade
Alejandro Vera
  • 6,287
  • 3
  • 20
  • 22
447
votes
8 answers

How do I change the GRUB boot order?

I have both Windows 7 and Ubuntu installed on a shared machine. Because a lot of the non-developers use Windows, I'd like to change the boot order to make it easier for them. Currently the boot order looks like the following: Ubuntu 11.10…
chrisjlee
  • 10,716
  • 14
  • 45
  • 51
446
votes
22 answers

Trouble downloading packages list due to a "Hash sum mismatch" error

When I check for updates, I get a "Failed To Download Repository Information" error. This is what comes up under details: W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources Hash Sum…
Rob
  • 12,760
  • 11
  • 32
  • 40
443
votes
19 answers

How do I check the battery's status via the terminal?

I would like a command that displays the battery status in the terminal.
Joe
  • 4,431
  • 3
  • 14
  • 3
443
votes
3 answers

How can I break out of ssh when it locks?

I frequently ssh into my box at home from school, but usually when I change classes and my computer suspends, the pipe will be broken. However, ssh simply locks up - Ctrl+c, Ctrl+z and Ctrl+d have no effect. It's annoying to have to restart my…
Wayne Werner
  • 6,652
  • 9
  • 30
  • 38
437
votes
34 answers

How can I deactivate Bluetooth on system startup?

How can I deactivate Bluetooth on system startup?
Floqqi
  • 4,387
  • 3
  • 14
  • 3
437
votes
9 answers

How to remove all files from a directory?

The closest I've gotten is # rm /path/to/directory/*.* but that doesn't work for files that don't have an extension...
user784637
  • 10,705
  • 19
  • 53
  • 56
433
votes
10 answers

How to enable hibernation?

In Ubuntu 12.04 and newer, hibernation has been disabled by default in policykit. How can I enable this back?
Dima
  • 9,727
  • 10
  • 34
  • 46