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

7
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 ...
6
votes
2answers
6k views

How to see the content of RAM memory? [closed]

Is there any way to see the content of the RAM memory? From the first byte until the last one. I'd like to see where the OS and all the processes running on it are located in the RAM. Is this ...
6
votes
3answers
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
5answers
35k 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 ...
6
votes
1answer
477 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
794 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 ...
6
votes
5answers
14k views

cron: run a process but only if it isnt running?

Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
6
votes
2answers
3k views

Why can't -z be the last command-line option to be used with tar?

$ ls one.tar.gz one.tar.gz $ tar -xvfz one.tar.gz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now $ tar -xvzf one.tar.gz one $ tar -xzvf one.tar.gz one $ tar ...
6
votes
3answers
37k views

How do I know which /dev/ttyS* is my serial port?

I have a laptop which has only one serial port. I went into: /dev directory, and I found: ttyS0 ttyS1 ttyS2 ttyS3 How do I know which of those "ttyS" refers to my serial port?
6
votes
7answers
9k views

My control key doesn't work, how do I fix it?

My control key on the right doesn't work how it should. E.g. Right ctrl + T won't open new tabs in firefox, right ctrl + w won't switch windows in vim, etc. I know the key isn't physically broken, ...
6
votes
2answers
6k views

Zypper: How do I display all packages from a certain repository?

Please tell me, how to let zypper display all installed packages of a certain repository.
6
votes
5answers
1k views

Is there a test-suite for Linux to test a computer?

I'm looking for a test suite that can test as many aspects of the hardware as possible. I already know about fsck and badblocks.
6
votes
3answers
3k views

fast Linux directory tree removal

rm -rf mydir is painfully slow for a directory tree with 100000 files (in sub-directories) on a reiserfs file system. Any ideas for faster removal of directory trees (even risking rare corruption) ...
6
votes
4answers
40k views

Partition table corrupted (USB flash drive)

It's an 8 GB Patriot thumb drive, which I've used extensively with lots of data. Today, it is detected, but all data is gone: (EDIT at least some data is still there, but the partition table is gone) ...
6
votes
2answers
8k views

How do I detect the RAM memory chip specification from within a Linux machine

I'd like to add more RAM to my Ubuntu installation ( running on a Dell Inspiron 640m ). Is there any inbuilt command or package to find out the current RAM chip specifications (manufacturer, type, ...
5
votes
1answer
26k 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 ...
5
votes
5answers
4k views

SSH with no password (passwordless) on Synology DSM 5 as other (non-root) user

I'm trying to ssh into my Synology disk station without a password (public key authentication), but as non-root. When I try to ssh as root without password, it works. Following the exact same steps ...
5
votes
2answers
2k views

How to persist bash history?

I don't know if this is expected, but my history is not saved across sessions. This is to say, if I close the window, then when I open it again, the history is empty. How can I persist it across ...
5
votes
2answers
5k views

Configure a trackball under Linux without editing Xorg.conf

Summary: In this post, I explain how I configure my trackball through xorg.conf file and ask what I should do instead, knowing that xorg.conf is deprecated. Long Introduction: I've been using a ...
5
votes
2answers
6k views

How to make commands in Mathematica 8 use all cores?

Many commands in Mathematica 8 (Integrate, Simplify, etc.) seem to only be using a single core on my system. Is there any way I can change the affinity so that it utilizes all cores for computations?
5
votes
3answers
2k views

How does IPv6 source address selection work in Linux?

How does Linux choose which of possibly many IPv6 source addresses to use when connecting to another site? I am opening connections to 6to4 and non-6to4 sites from a host configured with both a 6to4 ...
5
votes
3answers
371 views

Firefox plugin for English learners

Could you please help find a plug-in for Firefox that supports the following functions: Showing translation of a word by a simple shortcut (like Shift + Right click). Allowing to modify list ...
5
votes
5answers
7k views

How do I convert a Linux disk image into a sparse file?

I have a bunch of disk images, made with ddrescue, on an EXT partition, and I want to reduce their size without losing data, while still being mountable. How can I fill the empty space in the image's ...
5
votes
5answers
280 views

Linux/Unix in Windows

What would be the best way to get the full-blown Unix/Linux bash inside Windows? I don't mean the Virtual Machine, but rather only the terminal with mounted NTFS drives. This way I could use the ...
5
votes
4answers
2k views

Does “chmod 777 .* -R” chmod parent directories (..)?

Does chmod 777 .* -R change the mode of parent directories (..) recursively?
5
votes
8answers
21k views

How to check the current disk space used by my linux?

The entire box. How many gigs is everything using? And how do I check total?
5
votes
4answers
14k views

Why does my Linux prompt show a $, instead of the login name and path?

On one of my servers, the prompt is [user@host path]...and I can actually push "tab" to auto-fill the path. But on my new Ubuntu server, it is just a dollar sign?
5
votes
4answers
2k views

Foobar2000 on linux

Does anyone successfully run Foobar2000 on linux ( under Wine ) ? Are there any alternatives with a similar philosophy, and maybe even with the ability to use the Foobar2000 plugins ?
5
votes
5answers
2k views

iPod management software for Linux

I have iPod nano 4th generation. I'm using Ubuntu Linux. There is no iTunes release for Linux. But I want to use as many iPod features as I can. Importing music is simple, I can use almost any media ...
4
votes
1answer
1k views

Debian ARM and Brother DCP195C with CUPS

I want to have acces to my DCP 195C printer (Brother) over LAN. For this purpose I have bought an raspberry pi and installed CUPS on it. CUPS runs fine and everything else is running smooth as well. ...
4
votes
2answers
4k views

How can I read input from the hosts keyboard when connected via SSH?

I'm currently experimenting with an RFID card reader that emulates a keyboard. When you connect a card, it will read out data from it and then emulate keystrokes according to configuration. I've ...
4
votes
2answers
150 views

Making custom, single-character directory mappings like ~ > $HOME

We all know that ~ maps to $HOME or /home/user. Is it possible to make other mappings like this on other characters (@,_)? A possible workaround I thought of was to use variables (which require at ...
4
votes
1answer
3k views

Load balancing with multiple gateways

I have to different ISPs, each on each own network. The main connects via ethernet and the secondary via wifi. The two networks have no relation at all. I just connect to them simultaneously. The ...
4
votes
2answers
4k views

How to find which package certain command belongs to on CentOS?

For example I can easily find locate command belongs to mlocate.i386 package. yum search locate mlocate.i386 : An utility for finding files by name [mirror@home /]$ rpm -qa | grep locate ...
4
votes
4answers
2k views

Convert symbolic links into corresponding target files [duplicate]

I have several symlinks to other files in a directory. I want to convert these links into independent files. Is there a command that does this?
4
votes
2answers
1k views

Transparent screensaver for linux?

I want to have a few console windows running tail -f on logs. Unfortunately this means that anyone with access to the computer can press Ctrl+c and have shell access. So I want to lock the screen ...
4
votes
1answer
245 views

Linux kernel - can't access sda16 & sda17

I can't access sda16 sda17 and higher partitions from my linux. This linux is rather debian (very old); kernel 2.6.23. So, I know that so old linux kernel can't access > 16 partitions on single sata ...
4
votes
2answers
2k views

Alternative to /proc/bus/usb/devices

/proc/bus/usb/devices should not be used anymore (and can't be mounted anymore on Ubuntu 11.04) But what is an alternative to it, for use in a terminal? I could easily grep that output to look for a ...
4
votes
1answer
2k views

How do you apply umask settings to an account that doesn't log in?

On my Ubuntu 11.04x64 server, I have service accounts running which do not log in and do not have home directories. These service accounts are responsible for running processes which are invoked as ...
4
votes
5answers
17k views

How do I run a script in the background and leave it running when I log out? [duplicate]

Possible Duplicate: Leave bash script running on remote terminal while not logged in? I have a bash script that runs Gaussian, a chemical structure calculator, which spends a couple days ...
4
votes
4answers
16k views

Windows to Linux Remote Desktop

I'd like to remote into my Linux (Ubuntu) desktop from a Windows desktop. Of course there is VNC, among others. The trick is that I just want to have a remote session without having any local screen ...
4
votes
2answers
7k views

Ubuntu: limiting user account only to access his home dir

I just created new user account, but the new user is able to access all the directories structure (including other's home directories). I'd like to limit the user to access ONLY his home directory ...
4
votes
3answers
5k views

SSH bookmark manager for Linux

I have used JellyfiSSH on Mac OSX which basically stores your ssh connection details so you can quickly open connections using the built in SSH client to various servers without having to type in all ...
4
votes
2answers
2k views

rsync N newest files in a directory

What would be the easiest way to go about rsyncing the n newest files in a directory to a remote server?
4
votes
3answers
677 views

linux shell, keep task alive for specified time

I am looking for a tool to keep a task alive (restarting if necessary) for a specified amount of time (in seconds), and then kill it and stop. For example: keep_for 3600 rsync foo bar:faz should for ...
4
votes
1answer
1k views

Shell scripting: Way to parse parameters from command line

myscript [-a a-arg] [-c c-arg] [-b] [-e] somedirectory Given that I want my shell script be invoked at the command line using the above parameters - where [these brackets] denote that they are ...
4
votes
2answers
907 views

Is there a breakdown of the differences between GNOME, KDE, and Xfce desktop environments?

I am going to be putting Linux (Ubuntu) on my desktop and I figure that don't need every desktop environment out there, so I figure I'll either get Ubuntu (GNOME), Kubuntu (KDE), or Xubuntu (Xfce). ...
4
votes
7answers
30k views

Windows 7 Virtual PC + Linux Ubuntu

I've installed Ubuntu inside a virtual machine running on Windows 7's Virtual PC. One thing I've noticed right away is that it has to capture the mouse and not all the hardware works as expected. I ...
4
votes
4answers
289 views

What is the most simple explanation for the fact that Windows applications are not Linux-compatible?

What can you respond to someone who asks you: ...And why can't I install a Windows application on my Linux computer?