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
8answers
1k 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 ...
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
3answers
15k views

Can a Linux user belong to more than one group?

Can a Linux user belong to more than one group? If it is allowed, then one use may access files from two groups, that would be quite nice! If not, is there any alternative way to have this function? ...
9
votes
5answers
6k 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 ...
9
votes
4answers
49k 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) ...
9
votes
3answers
43k 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, ...
9
votes
2answers
16k views

Rsyslog outputting to custom log file

Can anyone tell me what I did wrong here? Here is the ultimate question: Why when I use the logger command can I not get it to output to a custom log file in /var/log? In my script: logger -i -t ...
9
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?
9
votes
3answers
16k 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
8k views

How to determine the socket connection up time on Linux

I can verify that the connection is up: $ netstat -tn | grep "192.168.2.110" tcp 0 0 192.168.2.100:10444 192.168.2.110:52639 ESTABLISHED is there a way to check how long this tcp port ...
9
votes
1answer
864 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
3answers
25k 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. However,...
9
votes
5answers
995 views

How do I install a .deb file in Ubuntu

How do I install a .deb file in Ubuntu
8
votes
2answers
13k 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
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 ...
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
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//...
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
7answers
14k 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
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
10answers
537 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. ...
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
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
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
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
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
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
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 ...
6
votes
2answers
461 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
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
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
906 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
1answer
539 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
2answers
3k 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
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
314 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
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
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
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
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
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
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
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
4answers
2k views

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

Does chmod 777 .* -R change the mode of parent directories (..) recursively?
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 ...