A family of Unix-like 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

9
votes
3answers
15k views

How can I use SSH with a SOCKS 5 proxy?

I don't know much about proxies in general, and especially not SOCKS5 proxies, so sorry if this is a newbie question but I haven't been able to find the answer online or in the man pages. I have a ...
9
votes
4answers
9k 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
4answers
48k 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) ...
8
votes
2answers
12k views

POSTing a file's contents with CURL

(The following is backstory, you can jump down to "Question:" if you'd like) There's a webpage for one of my courses that accepts input text (expected to be Python code) and then gives some tokenized ...
8
votes
8answers
6k 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
2answers
3k views

What causes double slashes in Linux?

I'm installing TCE and see double slashes ( // ) in the installation path. Why they are there? 100% - /usr/local/games/enemy-territory//tcetest/ReadMe.rtf 100% - /usr/local/games/enemy-territory//...
8
votes
8answers
2k views

how to remotely open an URL in Firefox in a specific profile?

I have several instances of Firefox with several different profiles running. Among them profiles with the names "software" and "test". I am trying to open an URL from a bash script to have it open in ...
8
votes
4answers
4k 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
3answers
3k 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 ...
8
votes
3answers
1k 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
5answers
2k 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
4answers
28k views

Creating a Windows XP installation flash drive in linux

How can I create a bootable flash drive to install Windows XP from under Linux? I have Ubuntu installed on my PC and want to install Windows XP parallelly. I already have an NTFS hard drive, so what ...
7
votes
2answers
14k 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
3answers
3k 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 ...
7
votes
5answers
23k 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 ...
7
votes
7answers
13k 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, ...
7
votes
3answers
9k views

Tell aptitude to ignore broken package

I installed a Amsynth from Lucid in Karmic using: dpkg --force-depends-version -i amsynth_1.2.2-1_i386.deb The reason for installing the Lucid version is because Karmic version is 3 years old and ...
7
votes
2answers
3k 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 ...
7
votes
2answers
3k 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 ...
7
votes
6answers
4k views

Logging lock-screen events

Problem See the exact date & time a user locks and unlocks his work station - running Fedora 18. Question Is there any way to log an event of a user entering and exiting "lock-screen" on fedora ...
7
votes
2answers
5k views

How can I check whether USB3.0 UASP mode is enabled in Linux?

I have a laptop running Ubuntu 15.04 (3.19.0-21-generic) and an external USB3.0 2.5" SATA HDD enclosure which claims that it supports UASP mode (this model by StarTech). I have no problems mounting ...
7
votes
2answers
2k 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
10answers
532 views

What is the easiest way to free space on a hard drive?

My hard drive became full. I am looking for ways to locate the things that use most of my disk space. I played with cron once so it may have consumed a great deal of space, but really I have no clue. ...
6
votes
2answers
2k views

How to determine what type of wifi networks are supported by your driver on Linux

On Linux (specificially Ubuntu) what's the easiest way to determine what types of Wifi protocols your hardware and driver support? I have a router running DD-WRT that supports broadcasting in both a ...
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
2answers
1k views

How can I copy the output from a remote command into the local clipboard?

I use iTerm2 as my terminal client in Mac OS X. On the local system I can use pbcopy and pbpaste to transfer data between the system clipboard and the terminal, but of course this doesn't work when ...
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
2answers
10k 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, ...
6
votes
4answers
313 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?
6
votes
1answer
534 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
1answer
3k views

How do I run commands on suspend/return from suspend?

I suspend my laptop (pm-suspend) often and sometimes my desktop (pm-suspend-hybrid) fairly often. I am using the latest ubuntu (13.10, saucy). Is there a way I could run a command when I go into ...
6
votes
2answers
459 views

Use hard disk image like a regular hard disk on Linux

If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk? By "regular hard disk" I mean I would like to have the ...
6
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 ...
6
votes
2answers
902 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 so,...
6
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
4answers
2k views

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

Does chmod 777 .* -R change the mode of parent directories (..) recursively?
5
votes
4answers
3k 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?
5
votes
3answers
1k views

Mount hibernated Windows partition

I am trying to mount my Windows partition at boot. It works fine when Windows is in shutdown, but when Windows is hibernated, it can't be mounted as read/write, and I am sent to the root shell at boot....
5
votes
2answers
2k views

Directly connect MacBook to Linux desktop via ethernet for fast SSH?

I am looking at building a Linux desktop—desktop only; no monitor support—and getting a MacBook Pro as my main computer for mobility. I would like—while I am at the office—to basically use my MacBook ...
5
votes
4answers
5k views

How to make Windows bootloader the default?

When I got a new computer, I installed Ubuntu and Windows XP on it. When I turn it on, GRUB shows up and lets me choose between the OSes. All right so far. A while later, I decided I don't want ...
5
votes
5answers
6k views

How to ssh a computer over a router

At home I have a linux machine behind a router. How can I ssh it?
5
votes
1answer
3k 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 ...
5
votes
3answers
405 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
1answer
4k views

Bash, how to globally fix ^H and ^? backspace problems

I'd like to fix this frequent problem where the shell on a remote server thinks my terminal's backspace key is ^? and sometimes it thinks it is ^H, and happens to be incorrect and outputs the wrong ...
5
votes
3answers
10k views

Bonding two wifi adapters

I saw a network once that used bonding (some people called it "port trunking") to combine two network cards into a single connection to get twice the bandwidth. I have a slow Wifi network with not so ...
5
votes
8answers
27k 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
1answer
9k views

How do I copy and paste between my local system and the remote system when using rdesktop on Linux?

On Linux I do: rdesktop remotepc How do I copy and paste between my local system and the remote system?
5
votes
2answers
7k 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
2answers
5k views

Using command line to connect to a wireless network with an http login

I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This ...
5
votes
2answers
4k 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 ...