Most Popular

1500 questions
314
votes
18 answers

How to modify an invalid '/etc/sudoers' file?

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it. Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line…
user25165
314
votes
9 answers

How can I fix a 404 Error when using a PPA or updating my package lists?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?
Pedro
  • 3,141
314
votes
10 answers

What is the difference between Terminal, Console, Shell, and Command Line?

What is the difference between Terminal, Console, Shell, and Command Line?
Anon
  • 12,063
  • 23
  • 70
  • 124
314
votes
10 answers

How do I find my internal ip address?

I have Ubuntu server 12.04 installed, so I have no GUI. When I do the command ifconfig, I cannot find my internal IP address. It says: inet addr: 127.0.0.1. Here is the output of ifconfig -a: eth0 link encap:Ethernet HWaddr 00:06:4f:4a:66:f0 …
Cam Jones
  • 3,741
  • 10
  • 23
  • 26
313
votes
15 answers

How can you log out via the terminal?

Is there a terminal command that will log you out of your current desktop session and take you back to the login screen?
TheXed
  • 26,536
312
votes
8 answers

How can I create a zip archive of a whole directory via terminal without hidden files?

I have a project with lots of hidden folders / files in it. I want to create a zip-archive of it, but in the archive shouldn't be any hidden folders / files. If files in a hidden folder are not hidden, they should also not be included. I know that…
Martin Thoma
  • 19,277
312
votes
3 answers

How to unzip .tgz file using the terminal?

I've downloaded mongodb-linux-x86_64-2.6.3.tgz file using windows 7 and kept it on D:\Amra\Software\Developing Soft location. When I right click this .tgz file using Ubuntu and see property it shows Location: /media/towhid/Amra/Software/Developing…
Towhid
  • 4,035
312
votes
12 answers

How to uninstall a .deb package?

Suppose I download a .deb package from a website and install it. (I assume that when I double click the .deb file, the package is installed through a GUI that interfaces with dpkg right?) How can I uninstall it?
312
votes
10 answers

How can I tell, from the command line, whether the machine requires a reboot?

When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red). How can I check, from the command line, whether an Ubuntu server requires a reboot? I…
311
votes
10 answers

How can I set up password-less SSH login?

I want to be able to login to a remote via ssh without having to enter the password all the time. How do I set it up? Is a different command required to execute a password-less session?
Oxwivi
  • 17,849
309
votes
4 answers

How do I diff the output of two commands?

I had imagined the simplest way to compare the contents of two similar directories would be something like diff `ls old` `ls new` But I see why this doesn't work; diff is being handed a big long list of files on the command line, rather than two…
Ternary
  • 3,987
307
votes
13 answers

What software can I use to view epub documents?

What software can I use to view .epub documents?
307
votes
11 answers

How can I uninstall software?

Seeing there are various ways to install on Ubuntu. What are the various ways to uninstall items? Which ways always work? How can I be sure something was uninstalled?
myusuf3
  • 34,189
306
votes
2 answers

What is hardware enablement (HWE)?

I see the linux-hwe-generic package as part of the kernels you can install in Ubuntu. What is hardware enablement (HWE)?
nelaaro
  • 10,028
305
votes
10 answers

Is FFmpeg missing from the official repositories in 14.04?

I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message: $sudo apt-get install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is…
user254877
  • 3,061
  • 2
  • 13
  • 6