Most Popular
1500 questions
124
votes
3 answers
Bash: delete from cursor till end of line with a keyboard shortcut
Consider the following bash prompt, where ^ denotes the prompt location:
$ git commit -am "[bug 123456] Do this and that with the bug"
^
Suppose that I want to commit again to the same bug, with a different commit…
Adam Matan
- 12,519
124
votes
13 answers
How to enable numlock at boot time for login screen?
I am trying to force numlock to be on upon initial boot at the login screen on Ubuntu 12.04. The only solutions I have found so far switch numlock on only after initial login.
I'm looking to force numlock to be on when the login screen is displayed,…
darryn.ten
- 1,473
123
votes
8 answers
How do I hide a particular user from the login screen?
How do I hide a particular user from the login screen on a default install of 11.10 and higher? (ie. using Unity Greeter)?
detly
- 3,382
123
votes
4 answers
What is the meaning of exit 0, exit 1, and exit 2 in a bash script?
I'm doing some practice exercises.
Write a script that will be given a month number as the argument and will translate this number into a month name. The result will be printed to stdout.
I made a solution:
# Test for number of argument
if [ "$#"…
andrej benedičič
- 1,435
123
votes
7 answers
How to launch default web browser from the terminal?
I was wondering what's the terminal command to open the default web browser.
Luca
- 2,432
123
votes
4 answers
What is the difference between "Unmount", "Eject", "Safely Remove Drive" and the eject icon?
When I right-click the desktop icon for my USB drive or SD card I have the choice to "Eject" or "Safely Remove Drive":
In the Tree side pane in Nautilus, I can either "Unmount" or "Eject":
The Places side pane in Nautilus has some kind of eject…
ændrük
- 76,794
123
votes
8 answers
fatal error: sys/cdefs.h: No such file or directory|
It has been weeks that I am trying to use Code::Blocks IDE on Ubuntu 14.04 LTS to program Atmega16, however I am hindered by the following error while compiling/building the program in C::B
/usr/include/features.h|374|fatal error: sys/cdefs.h: No…
Mandar
- 1,351
- 2
- 9
- 7
123
votes
3 answers
My wireless/WiFi connection does not work. What information is needed to diagnose the issue?
Your situation
You have successfully installed Ubuntu.
You have just downloaded and booted Ubuntu live media.
The latest LTS (see also HWE) or latest non-LTS release are preferred. See the list of Ubuntu releases that are currently supported.)
You…
Wild Man
- 8,187
- 4
- 34
- 44
123
votes
13 answers
How do I get resolvconf to regenerate resolv.conf after I change /etc/network/interfaces?
After updating /etc/network/interfaces with something very similar to below, how do I get /etc/resolv.conf to update? I tried (as root) resolver -u, service networking restart but they didn't work. I also fixed the symlink for resolv.conf and tried…
null
- 1,351
123
votes
6 answers
How to compile a .java file on Ubuntu?
How can I compile a .java file?
What programs will I need? If I need the Java JDK I will also need help installing that. I'm very new to Ubuntu, so any program that I need to install I will need a tutorial on how to install them.
user65407
- 1,365
123
votes
5 answers
Mount an external drive at boot time only if it is plugged in
I've got an entry for an external harddrive in my fstab:
UUID="680C0FE30C0FAAE0" /jgdata ntfs noatime,rw
But sometimes this drive isn't plugged in at boot time. This leaves me half way through a boot, with a prompt to "Continue Waiting,…
Jeremy
- 2,846
123
votes
12 answers
How do I change the default text editor?
How can I change my default text editor from gedit to Emacs?
Olivier Lalonde
- 58,691
123
votes
6 answers
Why is sudoers NOPASSWD option not working?
I have a NOPASSWD line in /etc/sudoers (edited with visudo)
gatoatigrado ALL=(ALL) NOPASSWD: /bin/set-slow-cpufreq
However, the output is,
gatoatigrado@coral:~> sudo -n /bin/set-slow-cpufreq
sudo: sorry, a password is required to run sudo
This…
gatoatigrado
- 1,803
122
votes
12 answers
How to set Monday as the first day of the week in GNOME 2 Calendar applet?
What is the recommended way to change the first day of the week to Monday (instead of Sunday, as in the screenshot below)?
I couldn't find anything related in Clock Preferences, nor in System -> Preferences, or System -> Administration.
This…
Jonik
- 7,178
122
votes
2 answers
Creating a symlink from one folder to another with different names?
I have two folders, one of which is my webserver root. I want to link it to my project folder so that I can keep things up-to-date with Git.
If I try to do this:
ln -s /home/user/project /var/www/html
The system creates a folder called project…
user991710
- 1,333