Most Popular
1500 questions
227
votes
7 answers
Copying multiple specific files from one folder to another
I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several specific files from this folder, by name, and copy them…
227
votes
20 answers
How to fix "sudo: unable to open ... Read-only file system"?
The title might not be as descriptive as I would like it to be but couldn't come up with a better one. My server's file system went into Read-only. And I don't understand why it does so and how to solve it. I can SSH into the server and when trying…
John
- 2,443
226
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,573
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
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,411
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
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 find…
Michael
- 2,361
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
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,463
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
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
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,175
224
votes
5 answers
Unable to update "Snap Store": cannot refresh "snap-store": snap "snap-store" has running apps (ubuntu-software)
I am a new Ubuntu 22.04 user who is facing an issue with the Snap Store. Whenever I try to update the Snap Store I can see these error messages. Pending update of "snap-store" snap Close the app to avoid disruptions (13 days left) Unable to update…
ABHILASH T
- 2,683
- 3
- 9
- 13
222
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,331
222
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,608