Free, open-source operating system based on Debian GNU/Linux. Ubuntu questions are on topic here, but if you prefer an Ubuntu-only audience there is AskUbuntu.com.

learn more… | top users | synonyms

38
votes
2answers
6k views

Why is it so hard to find a file in Ubuntu?

It's very hard to find files in Ubuntu. In Windows, you could just go to C:\Program Files and you would find what you need. In Ubuntu, you must use search to find something you need. Maybe I am ...
38
votes
7answers
3k views

How can a Linux OS be “based on” another Linux OS?

I've been looking through quite a number of Linux distros recently to get an idea of what's around, and one phrase that keeps coming up is that "[this OS] is based on [another OS]". For example: ...
38
votes
3answers
80k views

How to run a cron job as a specific user?

I would like to run a cron job as a specific user on my machine. How may I specify the user for a cron job to run as?. I am running on Ubuntu 10.0.4 [Edit] The cron jobs will be running on a server....
38
votes
5answers
79k views

How to clear DNS cache in Ubuntu?

I'm having problems related to DNS solving in my Ubuntu 9.10. Prior complaining to my ISP I would like to refresh my local DNS cache, like in Windows we do ipconfig /flushdns. How can I do that in ...
38
votes
8answers
20k views

Clipboard manager for Ubuntu? [closed]

I'm looking for a good program for managing clipboard history on the Ubuntu desktop used primaraly for software development. Ditto is exactly what I need, except it wont run on Ubuntu.
37
votes
3answers
80k views

What does /dev/sda for linux mean?

What does : /dev/sda stand for? What does it mean? I have both Fedora and Ubuntu installed and if I explore them using Ext2explore from windows, I see these names : /dev/sda6 /dev/sda9 Please ...
37
votes
4answers
10k views

Linux equivalent command for “open” command on Mac/Windows?

Coming from Mac OS X, you can type: $ open yourfilehere.txt and your file will open just as if you had opened it from Finder. On Windows, one can type: > start yourfilehere.txt and it will ...
37
votes
6answers
52k views

How can I view results of my cron jobs?

I see so many guides on how to run crontab, but what I need right now is to learn how to Find log files about cron jobs Configure what gets logged
37
votes
3answers
76k views

How can I update gcc to the latest version in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc 4.6.1. How to update using Ubuntu Package Manager: apt-get upgrade/install As a second option I ...
36
votes
13answers
52k views

In Google Chrome on Linux, where is the flv if not in /tmp?

I like to keep videos because I like buffering them and then playing them back-to-back in my media player, I want to be able to stop/restart my browser without losing all the buffered video, and ...
36
votes
10answers
68k views

Mouse clicks suddenly stopped working in Ubuntu

This is a weird one. For some reason, last night my mouse partially stopped working. Movement is fine, but the mouse buttons don't work. Mainly it's the left button, but occasionally the right click ...
36
votes
3answers
18k views

Set background image in xmonad

I have just switched from Fluxbox to giving xmonad a go, and I am definitely liking it. However, the one thing I haven't managed to do is to change my desktop background. I am using Ubuntu 8 (uh, can'...
35
votes
11answers
65k views

How do I move files and directories to the parent folder in Linux?

In Linux (Ubuntu), how do you move all the files and directories to the parent directory?
35
votes
3answers
106k views

How does one change user's home directory in Ubuntu 9.04?

Does anyone know how I might change my home directory in the shell please?
35
votes
2answers
30k views

Are there any real advantages to assigning more “cores” to VirtualBox?

I have an 2.8 quad core i7 with a VirtualBox. I have the option of assigning up to 4 cores to a guest machine, but I have only been doing two. What are the advantages/disadvantages of assigning more ...
35
votes
8answers
8k views

How do you track which packages were installed on Ubuntu (Linux)?

(This question is very similar to 10458. It was suggested that Fedora and Ubuntu/Debian are different enough to warrant different answers.) As I use any Ubuntu setup I gradually install a number of ...
35
votes
2answers
862 views

How do I teach my linux command line manners?

Whenever I complete something in the command line while using Ubuntu and my computer does something of value to me, I enjoy saying thank you, just because it's the polite thing to do. A typical ...
34
votes
3answers
15k views

Bad font anti-aliasing in Ubuntu

I'm switching from Fedora 8 to Ubuntu 9.04, and I can't seem to get it to get a good font anti-aliasing to work. It seems that Ubuntu's fontconfig tries to keep characters in integral pixel widths. ...
34
votes
8answers
16k views

Find all user-installed packages

Is there any way to get a list of all user-installed packages on an Ubuntu system, i.e. the packages that were installed on top of the default installed packages? (The idea is to get a comprehensive ...
33
votes
6answers
88k views

play mp3 or wav file via Linux command line

I would like to make an alarm system backed by a Ubuntu (no graphical interface) box, which plays various announcement and alarm audio tracks (.mp3 or .wav) via the command line. For example: $ root&...
33
votes
5answers
39k views

How do I stop services from starting on boot on Ubuntu?

I have lots of servers installed (Apache, MySQL, etc.), but I don't want them all to start at boot time (they drain power, and I'm on batteries most of the time). How do I configure this?
33
votes
2answers
7k views

on ubuntu 13.10 multiple hits on ctrl+tab makes my intellij 13 keyboard stuck (no key works)

I have to restart my intellij every like 20 minutes whenever I hit multiple times ctrl+tab. It looks like clicking this multiple time on my ubuntu 13.10 + intellij 13.01 makes my intellij stuck. on ...
32
votes
8answers
20k views

Swap partition size on a 64 GB RAM computer for memory-intensive work

I have 64 GB RAM and 240 GB SSD on my computer, which I'm going to use for memory-intensive calculations (machine learning, data mining, etc.). Most of the advice I found on the Internet are ...
32
votes
4answers
8k views

How do you run the previous command in emacs shell?

I am in terminal mode on Ubuntu, and I'm running emacs with 2 buffers open, one is a ruby file, and the other is a shell (opened by typing M-x shell ), and when I switch to the shell buffer, I want to ...
32
votes
2answers
64k views

Where can I get the repositories for old Ubuntu versions?

Where can I get the old repositories for Ubuntu versions? In my case, it's 9.04 Jaunty? I found all the official repositories and their mirrors have been removed. I am wondering where I can get the ...
32
votes
1answer
65k views

How can I filter out unique results from grep output?

In linux, I can grep a string from a file using grep mySearchString myFile.txt. How can I only get the result which are unique?
32
votes
4answers
20k views

How do I “identify with services” on IRC?

I am using irrsi as my irc cilent on ubuntu I have entered "/join #android-dev" in my command window. But I am getting this error message: 22:05 -!- #android-dev Cannot join channel (+r) - you need ...
32
votes
12answers
42k views

Enable system beep in Ubuntu

I have tried to get the system beep working, but with no success. I used echo -e '\a' and the beep application. I have tried entering modprobe pcspkr at the command line, and made sure pcspkr is not ...
32
votes
5answers
33k views

Ubuntu Server VM: copy paste?

I've installed Ubuntu Server under Virtualbox just to get a nice little shell. I've also installed the VirtualBox "Guest Additions" and set "Shared Clipboard: Bidirectional". I still can't seem to ...
31
votes
5answers
110k views

How can I add a regular user to the sudoers file?

How can I add more users to the "sudoers" file?
31
votes
10answers
43k views

How to extract text with OCR from a PDF on Linux?

How do I extract text from a PDF that wasn't built with an index? It's all text, but I can't search or select anything. I'm running Kubuntu, and Okular doesn't have this feature.
31
votes
10answers
27k views

Remote desktop to Mac from various platforms (Windows, Ubuntu)

I fear I know the answer to this already, but I would like to be able to connect to my Mac Mini in a 'remote desktop' fashion. I would like to connect to my Mac as if I were sat at my desk, but I ...
31
votes
3answers
35k views

Disable MySQL startup in Ubuntu 10.04

I want to prevent MySQL from starting in Ubuntu 10.04 I have used update-rc.d -f mysql remove and confirmed that there is no link to the /etc/inid.d/mysql script from any of the rc?.d directories. ...
30
votes
3answers
18k views

How to swap the “fn” use of Function keys on al Apple Keyboard in Linux

I have an apple slim keyboard (USB) and if I want to use one of the Function Key as-is, I also have to press "fn " key first. Otherwise, it will try to perform the other function of the key, such as ...
30
votes
7answers
5k views

Is it possible to “virtualize” an existing PC?

I'm running Ubuntu Desktop 12.04, and I was wondering if it was possible to somehow take my whole filesystem (everything under /) and create an ISO from it. Then, perhaps, use that ISO as the file ...
30
votes
7answers
67k views

How can I make mdadm auto-assemble RAID after each boot?

I successfully created a RAID (mirroring) by utilizing mdadm. However, I must run the following commands after each boot: mdadm --stop --scan // to stop /dev/md127 - I don't know where the number 127 ...
29
votes
4answers
33k views

How to have full directory path always shown in mac terminal (like linux terminal)

In my ubuntu terminal I have always current directory shown completely. Just like this: blabla@blublu:~/music/my_album/classical/beethoven$ But in my Mac (Mac OS X 10.6.5) terminal does not show ...
29
votes
4answers
10k views

How do you find the Ubuntu version (release number / name) from the command line?

How do you find the Ubuntu version (release number / name) from the command line?
28
votes
7answers
65k views

'No such file or directory' error in bash, but the file exists?

On Ubuntu, I get a 'No such file or directory' error when I try to execute a command. I have checked with ls -la , the file adb is there and it has 'x' flag So why I am getting a 'No such file or ...
28
votes
5answers
31k views

How do I find out my screen resolution from a shell script?

How do I find out my screen resolution from a shell script?
28
votes
2answers
21k views

How can I check the version of packages to be installed with apt-get?

After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be ...
28
votes
4answers
51k views

What are “build-essential” & “build-dep”?

I am researching how to install Ruby 1.9.1 in Xubuntu 10.04 and I came across the command build-essential and build-dep multiple times. Sometimes it is followed by packages and sometimes it is both ...
28
votes
1answer
18k views

sh: make: not found

I got the following error message: sh: make: not found I guess I need to install make, or a compiler on my Ubuntu 9.04 Could you tell me what I exactly need to type to install it?
28
votes
3answers
12k views

Bash command to focus a specific window

Is there a way, in bash command line, to give focus to a specific window of a running process. Assume I know the process' name, number, and anything else I need. For instance, if I have a single ...
27
votes
4answers
2k views

How to create a file which is named like a command line argument?

I was wondering how to make a file named as a flag, e.g., if I wanted to make a folder named -a, what commands would do the trick? I tried mkdir '-a', mkdir \-a, and neither worked. I'm on Ubuntu.
27
votes
3answers
17k views

Ensuring new files in a directory belong to the group

I want to create a shared directory when a number of users (all belong to say mygroup) can create and edit files. I would like all files in this directory and subdirectory to belong to mygroup I have ...
27
votes
2answers
19k views

How can I get virtualbox to run with a hosts-only adapter?

I'm trying to setup a Hosts-only Adapter so I can connect to it. It says that invalid settings detected and the name: drop-down isn't populated. What am I doing wrong and how can I rectify it? My ...
27
votes
6answers
68k views

Why do I need to enter a password for the Default Keyring to unlock?

When I log into Ubuntu, I am prompted every time to: Enter Password for Default Keyring to Unlock I want to avoid this step since I am the only person using this machine and I see no reason to have ...
26
votes
4answers
42k views

How do I find (and kill) process running on a certain port? [duplicate]

Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port ...
26
votes
7answers
6k views

Why create many partitions?

I have noticed that when installing Ubuntu some people create multiple partitions for directories. Like one for root, one for home, one for boot. What is the advantage to doing this over installing ...