Most Popular
1500 questions
104
votes
8 answers
Remove First n Lines of a Large Text File
I need to remove the first 42 lines of a 2GB SQL dump.
I know I can view the first lines using:
head -n 44 dump.sql
But is there anyway to edit or remove them?

Kohjah Breese
- 2,771
104
votes
2 answers
How do I enable Ubuntu (using full disk encryption) to call LUKSsupend before sleeping/suspending to RAM?
This question is related to another one by @Stefan, but it is not a duplicate of it. The questions are slightly different: the author simply wanted to know if this had been implemented, while I'm asking for help specifically on how to do this (in a…

Jonas Malaco
- 1,453
- 1
- 13
- 15
104
votes
11 answers
How do I install applications in Ubuntu?
How can I install applications like Google Chrome on Ubuntu?
Are there any commands to install an application?
Index of answers:
Basic usage of APT, Synaptic Package Manager and Ubuntu Software Center and how to install .deb files
List of methods,…

udaykumar
- 1,453
- 3
- 13
- 12
104
votes
7 answers
In VirtualBox, how do I set up host-only virtual machines that can access the Internet?
In setting up virtual machines with VirtualBox, I often want the following characteristics
VM has a static IP
host can access VM without port forwarding
VM can access the internet
I can move my laptop from network to network (e.g. from home to…

Christian Long
- 3,207
104
votes
10 answers
Cannot find install-sh, install.sh, or shtool in ac-aux
This is my first time trying to compile and install anything on a linux machine. I got the latest version of https://github.com/processone/exmpp via git and read the instructions which state:
2. Build and install
Exmpp uses the Autotools.…

Micah
- 1,204
104
votes
8 answers
How to restart WiFi connection?
I think I do not have problem with hardware. Sometimes the WiFi connection simply disconnects, apparently. So this is not necessarily the same as this case, I might not need to reload any modules.
But how to just restart wlan0? I tried restart…

wifan
- 1,141
104
votes
11 answers
How to mount a VirtualBox shared folder at startup?
I have Ubuntu installed in Virtualbox. I want to mount my VirtualBox shared folder in Ubuntu automatically when I log in Ubuntu. I put the following line in my ~./bashrc and ~/.bash_profile:
sudo mount -t vboxsf windows_share…

tonga
- 1,287
104
votes
5 answers
How to separate fields with space or tab in awk
While playing with awk I came to execute:
ls -la >> a.txt ; awk {'print $5 $1'} a.txt ;
This is giving output like:
53277-rw-------
52347-rw-------
How can I get a space between these two friends of output?

Raja G
- 102,391
- 106
- 255
- 328
104
votes
13 answers
How to change mouse speed/sensitivity?
I am on an Asus Zenbook UX32VD in Ubuntu 12.10. Both in 12.04 and 12.10 I haven't been able to change the mouse speed (i.e. the "sensitivity" in the mouse/touchpad dialog). I can change the slider, but nothing changes.
This is a big problem for me,…

Felix
- 1,093
104
votes
7 answers
Installing Java Automatically (With Silent Option)
I'm trying to install Java through apt-get.
I found this PPA of Java Installers, however, when I add the repository, update and then issue the apt-get install -y command, the installer for java takes over and it pops up a configuration option.
I'm…

Layke
- 1,379
104
votes
11 answers
How do I lock the screen from a terminal?
I am using Ubuntu 12.04. Is there any way to lock the screen or session from a terminal command or script?

Raja G
- 102,391
- 106
- 255
- 328
104
votes
4 answers
How do I change the font or the font size in the TTY (console)?
I am using Ubuntu 12.04. Recently, the font size for all of my TTYs became much larger.
How can I change the font size back to the default?

Aaron Hill
- 4,957
104
votes
9 answers
Can I run Android apps on Ubuntu?
Is it possible to run Android apps on Ubuntu? And I don't mean inside an emulator, but natively, as you would with any other application installed using the Ubuntu Software Center.

mxhernaiz
- 1,399
104
votes
4 answers
How can I tell what version of Java I have installed?
I want to start toying around with java (eventually getting to the point where I can write basic little programs for android or web), but I've managed to have java messed up on my computer (from past experiments).
I'm not sure which version of java…

Stramato
- 1,467
104
votes
10 answers
What is the Tomcat installation directory?
Based here I'm trying to setup Tomcat Server, I have successfully installed it and tested it. Then I stopped it as recommended in the tutorial. I'm setting up "New Server Runtime Environment" as you can see under Tomcat Installation Directory is a…

Lawrence Gimenez
- 1,307