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

6
votes
2answers
17k views

Why do I get “command not found” when the binary file exists?

Here's my problem. I have just compiled a linux build of tests in my VirtualBox VM. When I run it, I get: bash: ./tests: No such file or directory I did some research, and found it could ...
6
votes
1answer
1k views

Can you hibernate/reboot in Linux instead of hibernate/poweroff?

I'm using pm-hibernate, and would like to reboot the machine after it's done hibernating, rather than having the machine turn off. Is there a way to do this with pm-hibernate, or any other Linux ...
6
votes
3answers
2k views

How to wake from screensaver directly to the login screen in Ubuntu

(a.k.a. How to switch users without entering password, part II) (see part I) I've got Ubuntu 9.10 with a user account for my wife, and one for myself. "Wake-from-screensaver" should result in "choose ...
6
votes
3answers
18k views

Creating a RAID1 partition with mdadm on Ubuntu

I'm trying to set up a RAID1 partition on my Ubuntu 9.10 workstation. On this dual-boot system, Ubuntu is running from a separate drive (/dev/sdc - an SSD that is quite small, which is why I need ...
5
votes
1answer
84 views

Require user passwords on linux only on weekdays

Is it possible to make linux require user password only during specified time range, eg. from Monday to Friday? I want to set it this way on my Linux Mint, so that kids cannot access computer on ...
5
votes
1answer
111 views

Why there is an empty line begin with “*” in the result of history command on linux?

Today at work, I wanna know a history command which I am not very familiar with and I was sure that I just executed a little while ago. However, when I ran history on the same terminal window, I found ...
5
votes
1answer
752 views

Fake desktop environment on Debian server?

I want to run a TeamSpeak 3 Client on my server to serve as a local sound bot. TeamSpeak 3 Client needs a GUI. It is based on Qt. Since TeamSpeak can be controlled from command line, it is not really ...
5
votes
1answer
152 views

How to hide all windows except the one that I'm using?

I have set a shortcut to hide all the windows with Ctrl + Alt + D. But now I would like to set one that hides all except the currently active window. Is that possible?
5
votes
3answers
362 views

How to remove a file with name starting with “-r” using cli [duplicate]

I have been creating odd-named files every once in a while, e.g. $ls -rthl $-rw-r--r-- 1 shamil hep 290 Aug 13 11:58 -rf And interestingly it is impossible to remove this file with rm -f -rf I ...
5
votes
3answers
7k views

BASH - merge directories when using mv

I just started using BASH, so I can move all contents of a directory to another. But the issue is, I was expecting it to merge the directories. I am using cron job to run this script. #!/bin/bash ...
5
votes
3answers
4k views

extract single file from huge tgz file

I have a huge tar file (about 500G) and I wan't to extract just a single file from it. However, when I run tar -xvf file.tgz path/to/file it seems like it is still loading the whole contents into ...
5
votes
1answer
9k views

How to allow FORWARDing with firewalld on a Fedora 19 router

I've just installed Fedora 19 and I'm using firewalld instead of iptables, but I'm having difficulty interpretting the new terminology. I have 2 NICs. One is specificed ZONE="internal" and the other ...
5
votes
1answer
958 views

sudo -k vs. sudo -K

I know what the man page has to say about the -K and -k : ‑K The ‑K (sure kill) option is like ‑k except that it removes the user's cached credentials entirely and may not be used in ...
5
votes
3answers
5k views

Is it possible to put foreground process into background without suspending (control +z)?

I am running an application which receives TCP and UDP packets and therefore cannot be suspended. I intially ran 3 processes of the same application, with different arguments, in background mode using ...
5
votes
2answers
19k views

How I can check what takes disk space in /tmp?

I am working on external server - just doing some web-api there. Today when I wanted to use api php returned following error: Unknown: write failed: No space left on device (28) So I figured out ...
5
votes
2answers
2k views

Cannot exit X server, restart, shutdown or drop to tty when VGA monitor active

I have a strange problem. If I connect an external VGA monitor to my laptop, exiting the X environment in any way crashes the computer. For example, say I am working with my two monitors (the ...
5
votes
4answers
7k views

How to monitor memory usage for alarming purpose

We have embedded Linux system without swap. Currenly we must raise alarm when memory usage % increases over a threashold. And reboot when memory usage % increases over a (higher) threshold. Why we ...
5
votes
3answers
2k views

How do I edit previous lines in a multiple line command in Bash?

When entering a command which spans multiple lines in Bash, how do I edit previous lines? I'm a Linux Mint (Lisa) user using GNOME Terminal. For example, let's say I type: $ echo "foo bar > baz ...
5
votes
1answer
2k views

linux ping not actually sending 1 packet per second

I've been experiencing some odd behavior. While on a congested wireless network I run $ ping google.com I expect one packet to be sent out each second and only some of them to come back with a ...
5
votes
5answers
12k views

Good, lightweight GUI-based process monitor for Linux

I'd like a snappy GUI-based (I insist since people still want to propose console-based) application that can show me running processes and allow me to kill them, on Linux. It doesn't need to be as ...
5
votes
1answer
3k views

I believe I've deleted MySQL root user, how do I recreate it?

I'm running ISPConfig on CentOS and I don't know how, but I don't seem to have a root mysql user. I can stop mysqld with /etc/init.d/mysqld stop Start it again and skip grant tables mysqld_safe ...
5
votes
1answer
3k views

How can I tell Windows or Linux to put a specific (PCI[e]) device into sleep/off (D3) state?

How can I tell Windows or Linux to power a specific device (e.g. USB controller, network card, video card) down, that is put it in the D3 state? From the very little I know about ACPI and such, the ...
5
votes
3answers
574 views

How do I detect when I a terminal gets focus in Linux?

I want to be able to time how long I spend in front of a terminal. I'm thinking the best way will be to have some sort of timer that starts and stops when the terminal gains/loses focus. And it will ...
5
votes
6answers
756 views

Server uptime checker? [closed]

I want to monitor my server's uptime. Is there some free application or a really good paid service that offers this? Obviously, I can't write something that is hosted on the server whose uptime I am ...
5
votes
1answer
2k views

hdiutil on Linux

Anyone know of a Linux port of the Mac OS tool hdiutil (http://www.unix.com/man-page/osx/1/hdiutil/)?
5
votes
2answers
3k views

PC as Bluetooth speakers

I know that: There are Bluetooth speakers for my phone and for my iPod My desktop computer has Bluetooth dongle My desktop has speakers attached to it;) So, my question is: can I use my desktop PC ...
5
votes
2answers
6k views

Mouse button gets “stuck” down in VMWare guest OS

I'm using 64-bit Fedora 13 on 64-bit VMWare Workstation 7.1 (on Windows 7 Pro) and I'm having an issue with the mouse button. Everything works just fine unless I click and drag off the guest OS ...
5
votes
1answer
804 views

Linux/Unix - how to enable one user to `sudo` without a password

How can a user be setup to sudo (or su -) without entering a password?
5
votes
2answers
2k views

time tracking application on Linux [closed]

what application do you guys use for time tracking in Linux. I am interested in an application that tracks what applications I use, similar to rescuetime but with will run on Linux since the Linux ...
5
votes
2answers
2k views

Xserver that I can reconnect to

I'm looking for something like screen but for X? I imagine situation when I do something like "X --reconnect remote_server:11", and I am reconnected to pre-existing X session, with all programs that ...
5
votes
2answers
4k views

VOB merging: what command-line tool is recommended (Linux)?

I'd like to merge the VOB's of a DVD into a single VOB file. What command-line tool is recommended under Linux?
5
votes
6answers
815 views

How do you recommend installing Linux on a computer that has no external drive or ability to boot from an external drive?

I have an old Toshiba Portege 3505 "ultralight" laptop, meaning it doesn't have any kind of disk drive on it at all, that I'd like to completely reformat and install Linux on. However, it won't boot ...
5
votes
3answers
461 views

/usr/bin/reset disables backspace

Following this question, running /usr/bin/reset destroys my backspace functionality. What can I do? After pressing backspace I get ^?
4
votes
1answer
47 views

Linux: How does user log out work

I'm new with linux. I've searched about how to safely log out other user and found few solution but I want to know how they work internally. I have few questions: 1. pkill -KILL -u {username} Does it ...
4
votes
4answers
48 views

Strange “find” behavior in linux

Why in Linux(Debian 8) touch 1.cpp 1.h find . -name "*.cpp" -o -name "*.h" -exec echo {} \; outputs only 1.h while find . -name "*.cpp" -o -name "*.h" outputs both? Is it a bug or feature?
4
votes
1answer
2k views

What does 0.0.0.0 gateway mean in routing table?

I am new to being a Linux system admin and I am learning about routing tables. Currently I have two interfaces in my virtual machine: vagrant@vagrant-ubuntu-trusty-64:~$ ifconfig eth0 Link ...
4
votes
1answer
2k views

PM: Hibernation image not present or could not be loaded

After hibernating with systemctl hibernate, the system boots normally as if it had been shutdown. I have the resume parameter in the kernel line and the resume hook in mkinitcpio.conf These are the ...
4
votes
1answer
557 views

HDDs occasionally “click” and dump this error

Every once in a while, my HDDs (6 1TB drives in a Linux md RAID-6 array) make a brief "click" sound, and I get this from dmesg. I don't really have any clue how to start diagnose this, or even how ...
4
votes
2answers
67 views

Rename ':2f' to '-' on folder names in Linux

I've got a hard drive taken from a NAS drive where files had been put on from a Mac - However, some of the filenames had been, for example, 'backup 16/07/14' which has then been changed to 'backup ...
4
votes
1answer
994 views

Why does my .bashrc get read when I run noninteractive commands over ssh

I've prepended each of my bash config files (~/.bashrc,~/.bash_profile,~/.profile) with echo NAME_OF_FILE, i.e. I get '.bashrc' when I source in ~/.bashrc. What baffles me is why I get and ...
4
votes
2answers
1k views

How do you set alias sudo='nocorrect sudo ' correctly?

Until Recently I had alias sudo='sudo ' in my .zshrc file. Today I ran into this error on trying to do sudo mv: ➜ ~ sudo mv nginx.conf.orig nginx.conf.orig2 sudo: nocorrect: command not found Now ...
4
votes
1answer
2k views

ACL vs standard file permissions - which are used when accessing file?

ACLs and standard file permissions seem to be synchronized: $ getfacl test.cpp # file: test.cpp # owner: scdmb # group: scdmb user::rw- group::rw- other::r-- $ ls -l test.cpp -rw-rw-r-- 2 scdmb ...
4
votes
3answers
13k views

Execute a command stored in a variable

I have a command stored in a variable. Let's pretend the variable $i has the value: cat -nT index.php |grep 'someregex' When I try to execute the above variable by typing $i it fails because the ...
4
votes
3answers
3k views

Is it safe to disable fsck on boot?

Occasionally fsck would run on it's own when I reboot my server, but most of the time it doesn't. But when it does run, it takes too long to finish. Is it safe to disable this permanently?
4
votes
2answers
3k views

Change account on Linux Dropbox?

I'm running Crunchbang (Debian-based) and I installed Dropbox using the .deb package. When the program started I logged into an account, but now I want to log out and sign in to another account. The ...
4
votes
4answers
660 views

How to hide a code from myself until a specified time?

Essentially, what I need is some way to generate and store a random string (20 characters long, say) for some period of time, such that there is no way for me to recover the string until the end of ...
4
votes
1answer
2k views

default file permissions for ftp uploads in ubuntu (vsftpd)

I followed this answer for setting default file permissions in my web root folder. I am trying to set all files/dirs to 775 by default. This works fine when creating files within linux and also when ...
4
votes
2answers
2k views

Known problems with dual boot of Windows 8 and Fedora 17

Presently, I am using Windows 7 and Fedora 17 on my laptop. Both OSes work fine. I am thinking of upgrading Windows 7 to Windows 8, while keeping Fedora where it is. Keeping Fedora 17 on my system is ...
4
votes
1answer
12k views

Sharing Wifi-internet access via bluetooth

I'm on an extremely strict wireless network, which locks down one machine to one account. [Hotel wifi] Is there a way that I can share the Wifi connection with my android tablet via bluetooth? ...
4
votes
1answer
1k views

Windows won't sleep after booting from grub

I recently added a second hard drive to my computer and I am using it do dual-boot Linux (Ubuntu 12.04) with Windows 7. Both hard drives are SATA. I am using the default grub bootloader on my second ...