Most Popular
1500 questions
323
votes
16 answers
Hitting arrow keys adds characters in vi editor
When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor:
for ↓ I get B,
for ↑ I get A,
for ← I get D,
for → I get C.
Please help me in resolve this problem.

bvb
- 3,331
323
votes
17 answers
How do I clear the DNS cache?
I just updated the DNS record (ns1, ns2, ns3.myhostingcompany.com) for a site I've got hosted, but I still get the domain registrar parking page.
I'd like to see if the problem is Ubuntu's cached DNS records.
Is there a way to clear Ubuntu's DNS…

Jono
- 3,899
322
votes
13 answers
How do you restart Apache?
I switched from SLES to Ubuntu and now I want to restart my local server.
In SLES I used:
rcapache2 restart
but this seems not to work in Ubuntu.
How do I restart Apache?

Jai Puri
- 4,019
322
votes
8 answers
How do I zip up a folder but exclude the .git subfolder
I'm trying to create a zip file from a folder and I'd like to exclude the .git sub-folder from the resulting zip file.
I have gone to the parent folder of the one I want to zip (called bitvolution) and I'm doing:
zip -r bitvolution.zip bitvolution…

Tom
- 5,017
321
votes
18 answers
How to restart the networking service?
I tried to use
sudo service networking restart
and
sudo /etc/init.d/network restart
but they both crash the window manager and I can no longer use my keyboard for input into X.
when I use the /etc/init.d/ method it complains saying that I should…

waspinator
- 4,722
321
votes
7 answers
Simple image editor?
I want something similar to "preview" in macs. For example: I want an image editor that ONLY does simple adjustments like increase/decrease contrast, saturation, exposure, color tinting.... rotate, flip vertically, flip horizontally, make black and…

mandy
- 3,231
320
votes
22 answers
I have 16GB RAM. Do I need 32GB swap?
I read many places that the rule of thumb for swap space is to double the amount of physical RAM. However, 32 GB does seem a LOT. Do I need that much? Do I need it at all with this high amount of physical RAM?

Tamás Szelei
- 4,042
320
votes
2 answers
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the Internet, I see sudo su, sudo su -, sudo -i and sudo…

Paul
- 4,511
319
votes
9 answers
Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xxx' doesn't support architecture 'i386'
Getting below error message while issuing :
sudo apt-get update
Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB]
Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 InRelease …

Scott Stensland
- 15,575
319
votes
4 answers
What's the difference between <<, <<< and < < in bash?
What's the difference between <<, <<< and < < in bash?

Searene
- 4,350
319
votes
6 answers
How to use manual partitioning during installation?
I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no…

Danatela
- 13,243
- 11
- 45
- 72
317
votes
5 answers
Why did the command ":(){ :|: & };:" make my system lag so badly I had to reboot?
DANGER!
Do not run this command to 'test' it unless you are prepared for a crash and/or force-rebooting your system.
I was in my Virtualbox running 12.04 trying to compile an app, and while waiting I happened to chance upon a forum where a comment…

blade19899
- 26,704
317
votes
6 answers
Is it okay to delete the ~/.cache folder?
When I use disk usage analyzer and scan my home folder, the .cache folder in my home directory always shows up with a decent bit of things in it.
Would it be okay for me to delete the contents of this folder or would it damage something?

Aner
- 3,171
316
votes
11 answers
How do I find out the model of my graphics card?
I would like to know the model of my graphics card. I think it may be an ATI, but I want to be sure!
I have Ubuntu 11.10 (32 bit) and an Asus A6 VA laptop.

sasyna
- 3,201
315
votes
7 answers
How to make partitions mount at startup?
How do you make HDDs and partitions mount at startup on Ubuntu?
I always keep my media and data files on separate partitions - one 2tb HDD and a 400 odd gig partition. I have been trying to swap the default folder location for the home directory to…

Harley Baker
- 3,251