Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

11
votes
2answers
14k views

How to display a message before login?

I need to display a message before any login on a Linux box, either locally and for remote login via SSH. How can I achieve this? Edit: Thanks for your answers. I had to pick one accepted answer, ...
11
votes
9answers
8k views

How do I copy file named starting with a dot?

I am trying to copy all files under directory A to directory B. All files under directory A are starting with dot, for example: A/.a A/.b A/.c which I found if I use: cp A/* B, always get error: ...
11
votes
3answers
24k views

How do I download a file using the command line?

I want to download a file from the Linux command line. Basically I'm using ssh and I'm trying to download a file to my file system on my laptop. How can I do that from the command line?
11
votes
8answers
5k views

Disk operations freeze Debian

I have just installed Debian testing on my new desktop and I am not very happy with performance - when I perform a disk intensive operation, e.g. upgrade packages in the system, everything seems to ...
10
votes
4answers
5k views

How can I compress a file on Linux in-place, without using additional disk space?

I've got a 100GB drive that has a 95GB file. I need to free up some space on the drive (and right now transferring the file off the drive is not an option). The file would compress well with gzip or ...
10
votes
1answer
3k views

How can I prioritise network bandwidth on a per application basis?

Is there a way in Linux to give a specific application more/less priority for network bandwidth? Something like how nice does for CPU priority. Context: I'm currently on a very low bandwidth ...
10
votes
4answers
24k views

How can I change the time before the system locks?

When I step away from my Linux computer for a while, the system locks and I have to enter my password to unlock it. How can I change the time before the system locks? I've hunted through all the GUI ...
10
votes
4answers
11k views

Linux command to return number of bits (32 or 64)?

What is a Linux command that I can run to programmatically return either 32 or 64 to indicate whether the processor is a 32 bit or 64 bit processor?
10
votes
1answer
5k views

Why does my remote process still run after killing an ssh session?

I'm tailing a remote logfile by running this command in a local shell: ssh remotemachine tail -100f /path/to/error_file When I ctrl-c out of this command, it seems that the ctrl-c kills the local ...
9
votes
1answer
789 views

Why does it take so long for the computer to respond with “invalid password”, when using a correct password is near instant? [duplicate]

When you enter a password and it's correct the response is practically instantaneous (i.e. the log on process). When you enter an incorrect password (accidently, forgotten, etc) however, it takes a ...
9
votes
2answers
9k views

Why doesn't my cron.d per minute job run?

I have thrown a bunch of darts trying to get a python script of mine to execute every minute. So I thought I'd simplify it to just do the "simplest thing that could could possibly work" once per ...
9
votes
4answers
5k views

Zombie process using 100% CPU

A zombie process, which should not be using any resources (RAM and CPU), is hogging up an entire core on my 8-core 64-bit Ubuntu 11.10 Desktop installation. This is the output of ps -el|grep Z: F S ...
9
votes
4answers
4k views

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem?

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem? I don't care if the mount is read only. Hopefully your answer will also apply to file.tar.gz. "mount" in this ...
9
votes
4answers
8k views

Run a GUI app on remote computer from SSH

I want to run a GUI application on my Ubuntu computer, but it should started by a shell script on my Debian server trought SSH. Is this possible?
9
votes
2answers
18k views

How do you specify the location of libraries to a binary? (linux)

For this question I'll be using a specific example, but really this generalizes to pretty much any binary on linux that can't seem to find its' dependent libraries. So, I have a program that won't run ...
9
votes
5answers
3k views

How can I justify plain text in Linux?

I'm composing a plain text (.txt) document that has left-and-right justified paragraphs. I manually add spaces, breaking words with hyphens if necessary, until the lines are uniform length. To use an ...
9
votes
4answers
24k views

How do I run vino-server without a monitor attached in Ubuntu 10.04

I just upgraded to Ubuntu 10.04 yesterday on a headless home server. I use the server for a variety of purposes, and what I don't know how to do via SSH I've alway been able to do through VNC. ...
9
votes
4answers
16k views

Sending file via netcat

I'm using something like this to send file from one computer to another: To serve file (on computer A): cat something.zip | nc -l -p 1234 To receive file (on computer B): netcat server.ip.here. ...
9
votes
5answers
939 views

How do I install a .deb file in Ubuntu

How do I install a .deb file in Ubuntu
9
votes
4answers
12k views

How do I know if my linux kernel is running in 32bit or 64bit?

When I do a cat in /proc/cpuinfo it shows a line with clflushsize : 64 Does this mean my kernel is running in 64 bits?
9
votes
8answers
616 views

Save me from gibberish terminal

While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...
8
votes
0answers
305 views

How do I evaluate an SSD caching solution for home desktop use? [closed]

I've got a 30GB SSD that I would love to start using as a cache for my larger HDDs. I primarily want to improve apparent performance for general desktop use. I do the occasional massive DB migration ...
8
votes
1answer
26k views

“Network is unreachable” when attempting to ping google, but internal addresses work

I can get to other PCs in my house on the 192 network, but trying to go outside gives me the "network is unreachable" message. p3p1 is up with a good IP Address. Running Fedora 16. What should I ...
8
votes
1answer
20k views

PuTTY X11 proxy: wrong authorisation protocol attempted

I am trying to connect to an Ubuntu server to work on Qt-creator. Before everything goes wrong, I followed this tutorial. I downloaded putty and Xming and everything was working just fine. then, ...
8
votes
2answers
7k views

Linux on UEFI - how to reboot to the UEFI setup screen like Windows 8 can?

makeuseof.com explains that Windows 8 certified hardware has a new way to enter the UEFI setup screen (equivalent to BIOS). From How To Access The BIOS On A Windows 8 Computer: No longer do we ...
8
votes
5answers
26k views

How do I password protect a .tgz file with tar in Unix?

I'm using the Unix tar command as follows to tar up a directory and its files: tar cvzf fileToTar.tgz directoryToTar Is there a way to password protect the .tgz file? I've created ...
8
votes
3answers
44k views

how can i install CentOS 6 without the gui?

i just downloaded the centos 6 live cd and i tried installing it on virtually and i am never prompted to install centos with/without gui and its all automated. what happends is after i am booted into ...
8
votes
1answer
3k views

Linux: What is the best way to copy from a damaged HD?

I get I/O errors from my storage HD when i try to copy files. These are large raw video files, so I can tolerate errors. cp stops on the first read error and scp/rsync complains and deletes the copy. ...
8
votes
3answers
5k views

Manual HTTP(S) request

I am looking for a tool (possibly on Linux) that will allow me to make a manual HTTP or HTTPS request. By manual, I really mean it: I should be able to feed it a text file which looks like POST /foo ...
8
votes
2answers
2k views

Is there an equivalent of .lnk in Linux?

When creating a shortcut in windows it makes a .lnk file. I have researched and it seems these are openable in linux(with some tweaking). Does Linux have an equivalent? If so, whats the extension?
8
votes
3answers
943 views

How to map Ctrl-p to up arrow using xmodmap?

I did read the grammar section of xmodmap but still couldn't figure out how I could do it.
8
votes
4answers
3k views

In place extract tar archive

I have a little dilemma here... I needed to move about 70 GB worth of files from one of my servers to the other, so I decided that tarring them up and sending the archive would be the fastest way. ...
8
votes
6answers
10k views

Linux Skype alternative similar to Windows Skype?

Does anybody know a good option for a Skype based solution that works on Linux? I have a real problem with the current Linux version as it is a crappy, buggy and downgraded version of the Windows ...
8
votes
8answers
4k views

Ending a process in unix instead of interrupting it

At the unix command line if i press Ctrl-C,that does not end a process but rather interrupts it and i return to the shell prompt. So,i have the following two questions: 1.Is there a way i can see the ...
8
votes
5answers
5k views

kill -9 programs but they still hang on

I tried to kill all my background jobs submit earlier under KUbuntu by kill -9 $(jobs -p) Although this command immediately gave the message like [1] Killed myjob1 [2] Killed ...
8
votes
3answers
3k views

Custom hotkey/shortcut to open/bring to front an app

I don't imagine this is built into the system, but is it possible to do it without too much hassle? Say I open a specific program with a hotkey, and when I press that hotkey again, the program window ...
7
votes
3answers
1k views

Is it possible for root to execute a command as non-root

I am root user and suppose i want to run any application as another user. is it possible, without switching to another user. Something like # google-chrome user=abc I am actually executing a cli ...
7
votes
2answers
1k views

How can I use target mode in Linux with USB?

Kernel 3.5 introduces: This release includes a driver for using an IEEE-1394 connection as a SCSI transport. This enables to expose SCSI devices to other nodes on the Firewire bus, for example ...
7
votes
5answers
38k views

How can I determine if Apache is installed on a system?

I have Linux Mint on my computer but I don't know how to find out whether Apache2 is on it or where it is actually installed. I run my web browser (PHP installed) with http://localhost as a URL and it ...
7
votes
4answers
4k views

How to recover deleted file if it is still opened by some process?

$ cat important_file > /dev/null & [1] 9711 $ rm important_file $ killall -STOP cat [1]+ Stopped cat important_file > /tmp/p $ ls -l /proc/`pidof cat`/fd/ total 0 ...
7
votes
5answers
1k views

My power supply/motherboard nightmare

Last summer I bought a broken power supply (without knowing of course) and put it in my computer. Turning my box on made one of my cheaper HDDs catch fire (I believe a capacitor or resistor blew) and ...
7
votes
3answers
15k views

How can I install an RPM without being root?

How can I install an RPM on a machine where I don't have root permissions? I want to install a package for my use only in a personal work directory. I'm running SuSe SLES10. Please don't flame me ...
7
votes
2answers
12k views

How do I prevent Linux services from auto-starting?

I have recently migrated from Windows to Linux (xubuntu) I am a developer and have installed everything I need, LAMP. In Windows I used to turn off all unnecessary services - I don't need the Apache ...
7
votes
2answers
2k views

Smart tab completion (for directories)?

Are there shell versions that have a more intelligent tab completion? I'd like to be able to type cd foo-<TAB> Then it would show me the possible completions along with numbers that I can ...
6
votes
1answer
29k views

Ubuntu 14.04 wired connection detected but no internet access

I have no wired connection internet access on ubuntu 14.04 even though it is detected, my computer connected to the same router has. $ ifconfig eth0 Link encap:Ethernet HWaddr 4c:72:b9:7e:b5:61 ...
6
votes
4answers
5k views

Can I use pipe output as a shell script argument?

Suppose I have a bash shell script called Myscript.sh that need on argument as input. But I want the content of the text file called text.txt to be that argument. I have tried this but it does not ...
6
votes
3answers
2k views

How do I extract all the external links of a web page and save them to a file?

How do I extract all the external links of a web page and save them to a file? If you have any command line tools that would be great.
6
votes
1answer
485 views

Linux: which is “most appropriate” directory to place an exectuable for all users?

A bit of newb question.. I usually install packages and don't worry about these things. But, now I have a one file executable CLI program (Kindlegen from Amazon). I want it to be in the path of all ...
6
votes
3answers
2k views

How can I cause a VirtualBox VM (running Ubuntu) to run a command upon resuming its state?

I am running a few Ubuntu VMs on a MacBook Pro host. Whenever I pause a VM or save its state to disk, the next time I restart it, the system clock goes out of sync. Is there a way for the VM to know ...
6
votes
2answers
814 views

Potential issues with adding /usr/local/[s]bin to root's path?

I've noticed that the root account $PATH does not include /usr/local/bin or /usr/local/sbin by default. Are there any potential issues that could arise from adding those directories to the path? If ...