Most Popular

1500 questions
110
votes
7 answers

What is the difference between "gksudo nautilus" and "sudo nautilus"?

I've been using gksudo nautilus and sudo nautilus through Alt+F2. What's the difference? They look very similar!
DrKenobi
  • 6,442
109
votes
3 answers

netstat or alternative in docker ubuntu server 16.04 container

Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04? I am running an ubuntu:16.04 container in docker for Windows, it seems that netstat is no longer available... It is available…
109
votes
10 answers

rsync over ssh "error in rsync protocol data stream" (code 12). ssh works

I tried: rsync -v -v -e 'ssh -p YY' ./testfile me@XXXXX:/home Error Message opening connection using: ssh -p YY -l me 146.6.84.206 rsync ->-server -vvve.s . /home [sender] make_file(testfile,*,0) send_file_list done send_files…
user3391229
  • 1,205
109
votes
3 answers

apt-get install with --assume-yes is still prompting me to install dependencies

I am trying to write a bash script to install a list of software. I am using --assume-yes to get past the prompts. This following line somehow doesn't work: sudo apt-get install python-software-properties --assume-yes If I try to apt-get without…
Rengas
  • 1,281
  • 2
  • 8
  • 10
109
votes
6 answers

How can I turn off swap permanently?

Swap makes my system all sluggish and turning it off makes everything smoother. I have 3.5 GB of RAM. I know how to turn swap off by entering sudo swapoff -a in the terminal, but that's just for the current session, because after a reboot swap turns…
Alex Li
  • 1,291
109
votes
15 answers

Blank screen after installing nvidia restricted driver

I've installed the current nvidia restricted driver and rebooted my machine and now I get a black or blank screen. How can I fix this?
109
votes
12 answers

How do I read a variable from a file?

I want to insert in my script a value (string) that I would read from a text file. For example, instead of: echo "Enter your name" read name I want to read a string from another text file so the interpreter should read the string from the file and…
user208413
  • 1,125
  • 2
  • 8
  • 3
109
votes
2 answers

Why is gksu no longer installed by default?

I have always recommended pressing ALT+F2 and typing for example gksu nautilus or gksudo nautilus both are equivalent; to run graphical programs with root privileges. However, I have just installed raring on a test system and this no longer…
Warren Hill
  • 22,112
  • 28
  • 68
  • 88
109
votes
6 answers

How to monitor disk activity?

How do I view my Disk Activity on Ubuntu? For example, How can I monitor what is being written and read from disk as well as the percentage of disk usage? I am looking for an application similar to the Resource Monitor in Windows.
Fritsen
  • 1,091
109
votes
9 answers

Switch command output language from native language to english

How can I switch the command output language from my native language to English, so I can post my Ask Ubuntu question with English command output (error messages)?
BuZZ-dEE
  • 14,223
109
votes
10 answers

dpkg: error: dpkg status database is locked by another process

I just wondered if somebody could tell me what this means: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. reidsr@ubuntu:~$ sudo dpkg --configure -a dpkg: error: dpkg status database is locked by…
reidar
  • 1,241
109
votes
8 answers

git config global file - remove settings

The following command: $git config --global --list gives me: user.name=test user user.name=gotqn I want to remove the first name. I referred to this article and have done the following commands but without any result: git config --global…
gotqn
  • 2,047
109
votes
1 answer

Installing python: who is deadsnakes and why should I trust them?

I want to install Python 3.9 on my Ubuntu 20.04, and all tutorials I can find include a step as follows: sudo add-apt-repository ppa:deadsnakes/ppa I am concerned about security. I've looked into this question: Are PPAs safe to add to my system and…
Pedro A
  • 1,311
109
votes
2 answers

python-is-python3 package in Ubuntu 20.04 - what is it and what does it actually do?

Having used Ubuntu 18.04 for a handful of years now, and reading that Python 2 has been removed from Ubuntu 20.04, I was looking forward to using the commands python or pip rather than python3 or pip3. So today I tried Ubuntu 20.04 for the first…
cdahms
  • 1,773
108
votes
7 answers

What is the difference between "chmod +x" and "chmod 755"?

When it comes to making a file executable what is the difference between chmod 755 and chmod +x and when would I use which? I so far have only used chmod +x and I just read something and it used chmod 755 and I could not tell whether or not it was…
Darth4212
  • 1,298