Most Popular

1500 questions
239
votes
10 answers

Can I restart the KDE Plasma Desktop without logging out?

I'm just talking about the standard KDE desktop. After a while (many days) of running the task bar stops working properly. This is due to some sort of undiagnosed bug but that's really not my boggle at the moment. It's fixed as soon as I log out and…
Oli
  • 293,335
239
votes
3 answers

How do I compress a directory?

I'm trying to compress a directory and ftp it to a windows ftp. I have tried every tar command I can find to compress a directory. It appears to be ok. Then I transfer it and view it's contents using Winrar. Winrar keeps telling me the file is…
dko
  • 2,583
239
votes
13 answers

How to copy paste contents in the vi editor

I tried using Ctrl + V for pasting contents in a vi editor document, but Ctrl + V is not interpreted as a paste.
Rpj
  • 3,079
238
votes
15 answers

How do I make my terminal display graphical pictures?

This is a quick mockup I copy and pasted together. I imagine this being super cool and useful. Does something like this exist already?
Dennkster
  • 2,483
238
votes
8 answers

How do I enable or disable Apport?

The system crash dialog is annoying me, how can I turn it off? I'd also like to know how to turn it back on just in case I need it to report a problem.
jokerdino
  • 41,320
238
votes
4 answers

How do I configure a new Ubuntu installation to accept ssh connections?

I just installed Ubuntu. How do I set it up to allow me to ssh into it? Right now I get "ssh: connect to host x.x.x.x port 22: Operation timed out".
237
votes
8 answers

Automatically enter input in command line

I'm running a script that it requests entering 'y' on each operation, I am looking for a solution like $ ./script < echo 'yyyyyyyyyyyyyy' to pass all my inputs in one time.
NewMrd
  • 2,687
  • 4
  • 15
  • 9
237
votes
6 answers

How can I shorten my command line (bash) prompt?

Currently it is: michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$ Outside of renaming my machine and directory structure... How could I make it be something more like: michael:controllers$
237
votes
8 answers

How can I remove gpg key that I added using apt-key add -?

I don't need the key in my server's keyring anymore. Is it possible to remove it? I added the key using this command: curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - Thanks for helping
Raymond
  • 2,485
236
votes
20 answers

Comparing the contents of two directories

I have two directories that should contain the same files and have the same directory structure. I think that something is missing in one of these directories. Using the bash shell, is there a way to compare my directories and see if one of them is…
AndreaNobili
  • 4,539
  • 10
  • 26
  • 36
236
votes
7 answers

Sudoers file, enable NOPASSWD for user, all commands

Preface This is a fairly complex question related to the sudoers file and the sudo command in general. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use purely for learning purposes. I understand it's a…
nicholsonjf
  • 2,551
  • 2
  • 15
  • 8
236
votes
2 answers

How do I install different (upgrade or downgrade) PHP version in still supported Ubuntu release?

I am trying to update to install PHP 5.5, 5.6 or 7.0 in Ubuntu 12.04/14.04/16.04 LTS, and I can only get PHP 5.3.10 for Ubuntu 12.04, PHP 5.5.9 for Ubuntu 14.04 or PHP 7.0.4 for Ubuntu 16.04 using official repositories (using apt-get). I'm not…
kavisiegel
  • 2,517
235
votes
8 answers

Setting timezone from terminal

I want to change the timezone of the system clock from the terminal. This can be done with tzselect "which opens a gui in terminal" or sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime "which will set to gmt" But is there a way to set time…
user2155009
  • 2,451
  • 2
  • 13
  • 3
235
votes
6 answers

How do I remount a filesystem as read/write?

I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount,rw /dev/sdb3 in command line it returns not mounted or bad option. Any help would be appreciated.
Alkthree
  • 2,667
234
votes
17 answers

apt-get update fails to fetch files, “Temporary failure resolving …” error

Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com oneiric-security…
Lewis
  • 2,473
  • 3
  • 15
  • 5