Most Popular
1500 questions
211
votes
2 answers
How to change visudo editor from nano to vim?
When I use visudo, it always opens it with nano editor. How to change the editor to vim?

dedunu
- 9,186
211
votes
4 answers
How to connect to WiFi from the command line?
Other posts seems to be addressing more complicated network connection issues from the command line.
The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to connect to a network even when i click on…

cmo
- 6,338
- 5
- 16
- 14
211
votes
8 answers
Traditional search-as-you-type on newer Nautilus versions
Until now I was using a "traditional" version of Nautilus: that that comes with Ubuntu 10.10. Now I'm using 3.6.3, included with Ubuntu 13.04 (most likely any recent version is equivalent for the scope of my question, anyway).
One major difference…

deprecated
- 2,149
211
votes
16 answers
How do I open a text file in my terminal?
There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor)
How do I do that ?

Suhail Gupta
- 323
210
votes
10 answers
If I build a package from source how can I uninstall or remove completely?
I used source code to build one package such as below:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc…
user25165
210
votes
7 answers
How to read complete line in 'for' loop with spaces
I am trying to run a for loop for file and I want to display whole line.
But instead its displaying last word only. I want the complete line.
for j in `cat ./file_wget_med`
do
echo $j
done
result after run:
Found.
Here is my data:
$ cat…

user192118
- 2,101
- 2
- 13
- 3
210
votes
11 answers
How can I create a select menu in a shell script?
I'm creating a simple bash script and I want to create a select menu in it, like this:
$./script
echo "Choose your option:"
1) Option 1
2) Option 2
3) Option 3
4) Quit
And according to user's choice, I want different actions to be…

Daniel Rodrigues
- 3,247
210
votes
7 answers
What is the simplest Debian Packaging Guide?
I went to the Ubuntu wiki but got confused,there were too many ways. Please tell me an easy guide to Debian packaging.

akshatj
- 13,226
209
votes
2 answers
How can I display all users and groups with a command?
I want to display:
All users and
All groups
in my system using command-line.
users and groups commands display users currently logged in, and groups a user belongs to respectively.
How to display a list of all users and all groups by…

Pandya
- 35,771
- 44
- 128
- 188
209
votes
3 answers
How to print the directory tree in terminal
What is the command that can be used to draw the directory tree inside the terminal emulator?

Maythux
- 84,289
209
votes
8 answers
Not able to execute a .sh file: /bin/bash^M: bad interpreter
I wanted to execute a shell script:
-rwxr-x--x 1 root root 17234 Jun 6 18:31 create_mgw_3shelf_6xIPNI1P.sh
I tried to do a standard procedure, but I got this error:
./create_mgw_3shelf_6xIPNI1P.sh
localhost 389 -l…

user165062
- 2,153
- 3
- 14
- 6
209
votes
9 answers
How can I get mv (or the * wildcard) to move hidden files?
I am migrating my home directory from an old system to a new one, and the tarball I made contains everything, including hidden files like .bashrc. However, when I move the contents of the unpacked tarball (which are in /tmp) to my new home…

Randall Cook
- 4,005
209
votes
9 answers
Create encrypted (password protected) zip file
How do I create an encrypted (password protected) zip file?

David Oneill
- 12,144
208
votes
19 answers
How to install Eclipse?
I want to install the latest version of Eclipse but the Ubuntu Software Centre contains an older version.
Is there a PPA or some other way to install latest Eclipse?
Please describe the steps for full installation.

Gaurav Butola
- 5,921
208
votes
19 answers
ModuleNotFoundError: No module named 'distutils.util'
After updating to Ubuntu 20.04, whenever I run:
pip install
or
pip --version
it says:
adam@daryy:~$ pip3
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 5, in
from pip._internal.cli.main import…

Rock Life
- 2,180
- 2
- 6
- 4