Most Popular

1500 questions
222
votes
7 answers

How to read complete line in 'for' loop with spaces

I am trying to run a for loop for file and I want to display whole line. But instead its displaying last word only. I want the complete line. for j in `cat ./file_wget_med` do echo $j done result after run: Found. Here is my data: $ cat…
user192118
  • 2,221
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,713
221
votes
6 answers

How to open a file manager of the current directory in the terminal?

When I work in terminal, sometimes I want to open the current directory in a GUI file manager. And then to click the items in the window to run the application. How can I do this?
user8260
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
17 answers

How to customize the Ubuntu Live CD?

I would like to customize Ubuntu live CD by installing some additional packages. I have followed the Ubuntu help wiki guide but it doesn't seem to work. Can anyone provide clear instructions? I'm not keen to use Remastersys; I'd prefer a manual way.…
karthick87
  • 84,713
220
votes
5 answers

How to read and write HFS+ journaled external HDD in Ubuntu without access to OS X?

I have a HFS+ journaled external hard-drive and need to be able to write to it on Ubuntu. I don't have access to my Mac, it's thousands of miles away and I won't have access to it for three months. Can anything be done without losing the data on the…
oppochips
  • 2,201
  • 3
  • 14
  • 4
220
votes
6 answers

Why are hard links not allowed for directories?

I am using Ubuntu 12.04. When I try to create a hard link for any directory, it fails. I can create hard links for files inside file system boundary. I know the reason why we cannot create hardlinks for files beyond file system. I tried these…
Nischay
  • 3,801
219
votes
14 answers

Is there a lightweight tool to crop images quickly?

I need to crop images often - photos, printscreens, etc., and loading gimp for such a simple task takes way too long. Can you recommend a faster alternative?
219
votes
5 answers

Difference between the i386 download and the amd64?

What is the difference between standard i386 download and the amd64 download of Ubuntu 11.04? I am currently running the i386 on an amd machine, would my system work better with the amd64 download instead? (my machine was running Windows 7 64bit,…
Rob
  • 12,950
219
votes
8 answers

Not able to execute a .sh file: /bin/bash^M: bad interpreter

I wanted to execute a shell script: -rwxr-x--x 1 root root 17234 Jun 6 18:31 create_mgw_3shelf_6xIPNI1P.sh I tried to do a standard procedure, but I got this error: ./create_mgw_3shelf_6xIPNI1P.sh localhost 389 -l…
user165062
  • 2,253
  • 3
  • 15
  • 6
219
votes
7 answers

What is the simplest Debian Packaging Guide?

I went to the Ubuntu wiki but got confused,there were too many ways. Please tell me an easy guide to Debian packaging.
akshatj
  • 13,406
219
votes
19 answers

ModuleNotFoundError: No module named 'distutils.util'

After updating to Ubuntu 20.04, whenever I run: pip install <some package> or pip --version it says: adam@daryy:~$ pip3 Traceback (most recent call last): File "/usr/local/bin/pip3", line 5, in <module> from pip._internal.cli.main import main File…
Rock Life
  • 2,290
218
votes
15 answers

How to mount an ISO file?

I'm running into trouble trying to mount a large iso: dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. dev@dev-OptiPlex-745:~$ Can you tell me how I…
218
votes
18 answers

How to remove Ubuntu and put Windows back on?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows. How do I remove Ubuntu and reinstall Windows? Editor's note : many of the answers are about removing Ubuntu from dual-boot…
217
votes
5 answers

Is it possible to make writing to .bash_history immediate?

I often open lots and lots of terminals (right now, I have seven open on this workspace) and I often search history with grep to find a command I've just written recently, but I don't want to hunt down the terminal and then scroll up and hunt for…
Matt
  • 10,231