Most Popular

1500 questions
173
votes
10 answers

How to easily start a webserver in any folder?

I'm looking for a relatively painless way to launch a web server with document root in any folder I specify (or better yet, where I'm launching). I often try out new things like JS frameworks or so in a new folder somewhere…
173
votes
16 answers

Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

I am considering buying a Dell XPS 15 laptop. The laptop has a Nvidia 420m card which should work with Linux but I keep reading that the Nvidia Optimus technology isn't supported on Linux. I am not really interested in switching from Nvidia to Intel…
DSJones
  • 1,751
173
votes
5 answers

'chmod u+x' versus 'chmod +x'

What is the difference between chmod u+x and just chmod +x? I have seen a ton of tutorials that say to use u+x to make scripts executable. However, omitting the u doesn't seem to have any effect.
173
votes
18 answers

What system monitoring tools are available?

I am looking for system monitoring tools which are GUI and CLI or web-based which include basic functions such as: CPU Usage Ram Usage Swap Usage Disk Usage ( Space / I/O ) Heat Monitoring I know there are many tools I can use, but I am looking…
173
votes
2 answers

What is the difference between "source" and "."?

What is the difference between executing a script (e.g. /some/script) with source /some/script and . /some/script in Bash?
binW
  • 13,194
173
votes
5 answers

How do I pipe terminal standard output (stdout) to the clipboard?

Say I want to list the contents of a folder and directly paste them into a chat window for a friend to see. I realize I could do ls > filename.txt to create a file (filename.txt) with those contents; I'd then have to open or print the file and…
Insperatus
  • 5,093
173
votes
5 answers

How to get grub2 to remember last choice?

Grub2 - Community Ubuntu Documentation says the following: Saving an OS can be achieved by running sudo grub-set-default if DEFAULT=saved is set in /etc/default/grub. It may also be saved if GRUB_SAVEDEFAULT=true is also set in…
Jay Sullivan
  • 2,079
173
votes
6 answers

Unable to install "": snap "" has "install-snap" change in progress

I just finished the installation of the Ubuntu 18.04, but whenever I try to install any application from Ubuntu Software the same error occurs (for example "vlc"): unable to install "vlc": snap "vlc" has "install-snap" change in progress I hope…
173
votes
18 answers

How can I install pdftk in Ubuntu 18.04 and later?

Is there any chance of getting pdftk working in Ubuntu 18.04? I need this for creating PDF files with a watermark in shell. Or, does anybody know a working alternative to pdftk to generate a PDF with a watermark in shell? I already check/try out…
WiKrIe
  • 1,969
172
votes
5 answers

View history of commands run in terminal

Is there a way to save all my typed terminal commands and view it like history in a log book?
rgr
  • 2,089
172
votes
2 answers

How to enable mod_rewrite in Apache?

I just installed the LAMP stack on my Ubuntu system. The redirection is not working for me. I don't know how to fix it. Can anyone help me?
vinoth
  • 1,821
172
votes
12 answers

How to measure GPU usage?

Using the top command in the terminal lists processes, sorted by their CPU usage (and you can change it to sort by another parameter) Is there an equivalent for the GPU? This fellow is asking about RAM used by GPU
xxjjnn
  • 1,917
  • 2
  • 14
  • 12
172
votes
2 answers

Is it possible to clean the APT cache from the command line?

I ask because Ubuntu Tweak's Janitor is frozen due to the sheer number of packages in the cache that accumulated during the upgrade from 12.10 to 13.04.
Josh Pinto
  • 8,089
172
votes
10 answers

Quickly place a window to another screen using only the keyboard

I know that using Alt+F7, I can use the keyboard to move the window around. I can also use the "Grid" plugin of Compiz to position quickly the window around my current monitor. The grid plugin doesn't seem work across monitor however. What I need is…
Dat Chu
  • 1,917
172
votes
7 answers

How do I create a 32-bit WINE prefix?

How do I create a 32-bit Wine prefix on Ubuntu 12.04 64-bit?
Levan
  • 11,118