Most Popular
1500 questions
226
votes
9 answers
Create encrypted (password protected) zip file
How do I create an encrypted (password protected) zip file?
David Oneill
- 12,614
226
votes
22 answers
Why is it bad to log in as root?
I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. However, there isn't much that a search reveals on…
Mussnoon
- 5,236
225
votes
8 answers
Is there a way to create multiple directories at once with mkdir?
If I wanted to create multiple directories (on the same level) and then feed it a comma seperated list of directory names (or something to that effect)?
BGroat
- 2,425
225
votes
6 answers
How can I set up PyCharm to launch from the Launcher?
I have installed PyCharm on my brand new Ubuntu 13.10 laptop.
To launch PyCharm, I find I must navigate to the directory that pycharm lives in, and execute it from there as such:
cd home/matt/software/pycharm/bin sh pycharm.sh
I hope this isn't…
tumultous_rooster
- 2,302
225
votes
9 answers
How do I add swap after system installation?
I did not create a swap partition during Ubuntu installation. Later, I freed up some space and made a swap partition. Now after each boot up, I am manually opening gparted to right-click the swap partition to turn on the 'swapon' option.
How can I…
user13593
225
votes
2 answers
How do I scan for viruses with ClamAV?
I installed ClamAV via Terminal (Ctrl+Alt+T) with:
sudo apt-get install clamav
but how can I scan for viruses?
BuZZ-dEE
- 14,533
225
votes
3 answers
How to uninstall a package installed from snapcraft?
I used this command line
sudo snap install pwgen-tyhicks
to install pwgen but I can't findout how to use it.
So I want to uninstall it. How to uninstall it?
UbuntuLover
- 2,969
- 3
- 12
- 15
224
votes
1 answer
How to append tee to a file in Bash?
These are commands I type in the terminal
echo -e "First Line" | tee ~/output.log
echo -e "Second Line" | tee ~/output.log
When I look in the file output.log I only see 'Second Line'. How can I make sure that tee appends (rather than wipes out the…
Bluebeep
- 2,401
224
votes
6 answers
Installed Teamviewer using a 64-bit system, but I get a dependency error
I was trying to install Teamviewer, but I was getting a dependency error. I tried to install the required packages, but with no luck.
I'm getting this error:
Unpacking teamviewer (from teamviewer_linux_x64.deb) ...
dpkg: dependency problems prevent…
Mini John
- 2,345
- 2
- 15
- 12
224
votes
7 answers
Find the correct php.ini file
I am currently trying to locate the correct php.ini file to edit it and restart apache so the changes will take place and I'm stumped.
I have found three different php.ini files (no idea why there are three)
this is how I found the files
$ sudo…
Michael
- 2,351
224
votes
18 answers
How to change LCD brightness from command line (or via script)?
To work around bug #1005495 (changing LCD brightness via hotkeys impossible), I'd like to have one command line query for increasing and one for reducing the brightness of my LCD. I could then map a hotkey to each one of this queries.
The problem…
user69748
- 2,453
222
votes
10 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,155
- 4
- 19
- 21
221
votes
7 answers
How to split larger files into smaller parts?
I have a large file (8GB for Example). How can I split it into multiple parts, let's say 3 equal parts, and after that how do I integrate them later?
karthick87
- 84,513
220
votes
16 answers
How to change tooltip background color in Unity?
In a lot of applications the tooltips are just plain ugly (White text on black background, way too much contrast) or even unreadable (black or dark blue text (Hyperlinks) on black background). I want to change the background color of the tooltips to…
kayahr
- 4,179
220
votes
3 answers
BASH script to set environment variables not working
I have written the following script to set some environment variables when needed:
#!/bin/sh
export BASE=/home/develop/trees
echo $BASE
export PATH=$PATH:$BASE
echo $PATH
Below the command and the results I can see on my terminal: the script runs,…
MirkoZa
- 2,311