These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

2
votes
3answers
555 views

Does a fault in a kernel module necessarily result in a system crash?

Or is it possible to overcome the fault, since the code isn't in the monolithic part of the kernel?
33
votes
5answers
56k views

How to easily build your own Linux Distro? [duplicate]

I wanted to have a go at creating my very own Linux Distribution. Could you suggest some nice and easy-to-follow tutorials (preferably text based and not videos). I have heard something about Arch ...
0
votes
3answers
12k views

How to download files from a remote Linux (Ubuntu) Server? [duplicate]

How can I download files from a remote Linux Ubuntu server? I have access to this server, but I don't know a convenient way to download a file from there using SSH (PuTTy), for example. Any ...
6
votes
1answer
20k views

Change the number of rows and columns in the TTY [duplicate]

I want to resize the terminal which comes up when you press CtrlAltF1 (or F2,F3,...). 25x80 is small for a 24" screen. Tried using stty, but the commands stty columns 200 and stty rows 50 does not ...
4
votes
1answer
272 views

Strange ping behavior

I built a linux distribution using the Yocto Project, with little customization. It runs on a Single Board Computer. When I ping this machine, I get the following result: PING 10.128.11.1 (10.128....
7
votes
4answers
4k views

Swap alt and super

I have a Macbook Air that runs Linux. I want to swap the alt and super keys in both sides of the keyboard with each other. How do I do this with cli tools? Update Following Drav Sloan's answer I ...
3
votes
4answers
8k views

Can tr work with regex?

I have a file like this: AAAA BBBB CCCC DDDD etc Words in separate lines. I want to add them quotes using tr. So I tried the following: 1) To add a quote in the start of each word i....
3
votes
1answer
498 views

mount --no-canonicalize?

Neither man nor info page provide more information on this than: mount --no-canonicalize Don't canonicalize paths. The mount command canonicalizes all paths (from command line or fstab) ...
3
votes
3answers
4k views

How to determine how many files are within a directory without counting?

I've been having a fairly serious issue on a high traffic web server. PHP pages are slowing down considerably, and it only seems to be an issue on pages where sessions are accessed, or a certain table ...
23
votes
3answers
16k views

Determining Specific File Responsible for High I/O

This is a simple problem but the first time I've ever had to actually fix it: finding which specific files/inodes are the targets of the most I/O. I'd like to be able to get a general system overview, ...
5
votes
1answer
1k views

Send stdin to console and compressed file

I'm running a propietary program which generates text output. Kind of like a logger. logger I'd like to both view this output on the terminal to watch the server breathe, and send it to a text ...
1
vote
0answers
259 views

shifted screen with AMD card both drivers

Running OS 12.3 i've encountered the problem of a ragged and/or shifted screen using an AMD HD 7670M and FGLRX and/or radeon drivers. A full account can be found on: SuSE Hardware Forum Short story: ...
5
votes
5answers
2k views

Is there a way to listen to process?

I want to know if there is a way to listen to a process in linux & unix - when it ends and what's the exit code of the process(script). I dont want to write a script that will run X seconds and ...
3
votes
1answer
127 views

Files have the same inode but they don't link to each other

I have a bash script in two places and I can't remember how I created them. they have the same inode but none of them seem to link to another. is there a hard link but should not Links count for that ...
4
votes
2answers
8k views

understanding /dev/disk/by- folders

Question: What does /dev/disk/by-pathdescribe? And where is this documented? Going through the meaning of what is displayed in the folders /dev/disk/by- I've got that far, and I wonder is this ...
4
votes
2answers
6k views

Why command `ls -d` only print the `.` directory?

I have tried man ls, and then I got -d, --directory list directory entries instead of contents, and do not dereference symbolic links As the manual says, -d means listing all the ...
0
votes
0answers
1k views

Elementary OS - can't take properly a screenshot or record a desktop

Yesterday I installed Elementary OS Linux distro and it seems that I have this weird issue when trying to take a screenshot or record a desktop. I only get black images or black videos. Funny thing is ...
5
votes
2answers
1k views

Udev rule to match multiple node USB device

I have a 3G/GPS device that creates 5 tty nodes, although it's only one physical USB connection. Basically, a multi port usb-serial adapter. I'm trying to create some udev rules to make sure those ...
0
votes
3answers
781 views

Is it possible to display a graphical application on another host/user [duplicate]

We have a small linux cluster ~12 computers and a similar number of users. Is it possible for a superuser to launch a graphical application - say firefox or even a python script on another machine ...
2
votes
0answers
572 views

tmp/krb5cc_[uid] is not getting purged regularly (kerberos credentials cache)

A user wasn't able to authenticate using Kerberos because it wasn't able to create /tmp/krb5cc_[uid]. This was because /tmp ran out of inode space, as there were innumerable Kerberos credential cache ...
0
votes
0answers
163 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
1answer
99 views

Replacement for standard KDE monitor manager?

My Linux experience is roughly a 4/10. I'm running the latest Debian-Wheezy install, and I've been having some trouble with the stock KDE display/monitor manager (to clarify as these terms seem to ...
2
votes
2answers
66 views

What alternative backends does sudo support and how is it configured?

When preparing for the Red Hat Certified Engineer certification examination, I came across this quote in my study notes about the sudo command. By default, the policy is maintained as a flat text ...
1
vote
3answers
191 views

Renaming the system users bin and man without doing harm?

In my setup I need to rename the Linux system users man and bin because I need the usernames for humans. I'm using Ubuntu 12.04. I know that I have to change /etc/passwd, /etc/shadow, etc. But when ...
0
votes
1answer
47 views

How can I download install Linux on a Windows PC while using Windows as little as possible?

My brother's Windows (Vista) PC has recently become incredibly slow, to the point where you can't really do anything without waiting at least 15 minutes. I think it's got a fair amount of space left ...
5
votes
1answer
803 views

How can I jump to files from vim opening them in a separate tab?

I have installed tags so I can jump to a function body in another file via CTRL + ] I know that I can do gf to jump to another file. I know that I can do CTRL-w s to split the vim window. What I don't ...
4
votes
1answer
605 views

File size shown by “du -k” is different in different file systems (PRAMFS and FLASH)

I have a file xyz.log which is of size 1.72MB. In FLASH file system: If I run du -k xyz.log output is 1761 xyz.log. I copied the same file to RAM storage and run the du -k xyz.log output is 221 xyz....
1
vote
1answer
305 views

Why wouldn't Perl CGI script run

I'm using Apache on CentOS and am trying to run a Perl CGI script as directory index so it will run automatically as a subdomain. I added DirectoryIndex script.cgi and added a Directory stanza noting ...
0
votes
2answers
348 views

getting a gui program to start on boot

I have a C program I wrote for debian on the raspberry pi that asks the user to enter a number, 1-4 which it then stores in a configuration file. This only happens if the configuration file is missing....
1
vote
1answer
254 views

Redirecting all IP over USB traffic to a fixed address

I'ma bit of a network newbie, so apologies for the inaccurate vocabulary. Say I have a device connected by IP over USB to my computer (running Ubuntu), that connects to 10.0.0.1. I configured my ...
1
vote
2answers
2k views

Cannot modify files in my home directory

I have a laptop running Ubuntu Server 12.04 and suddenly, yesterday, I don't know what happened, but all the permissions changed of my home directory, so when ever I try to create a file, it says ...
0
votes
1answer
182 views

Xen crashes when loading X

I installed debian-7.1.0-i386-kde then apt-get install various Xen stuff. After updating Grub I found it boots up using Xen however at the point where it tries to draw my desktop (KDE) I get a bunch ...
12
votes
3answers
4k views

How to get total number of bytes/sectors/blocks written to disk since booting?

I'm considering and update from HDD to SSD. But since Flash cells can only sustain limited writes. I want to know how much data my computer write during normal operation. So I can determine how long ...
9
votes
1answer
2k views

Output visual (ASCII) Debian dependency tree to terminal?

I'm not sure if this is more of a SuperUser or UnixLinux question, but I'll try here... Recently, I found this: #710689 - aptitude: use unicode character in the trees - Debian Bug report logs It ...
5
votes
1answer
7k views

Reading SIM data via file managers using USB datamodem

How to browse a GSM SIM card's filesystem in Linux / nautilus / pcmanfm filemanager, and read the files with suitable editors ? There is one related post: Howto read SMS stored on a SIM card? But ...
3
votes
2answers
26k views

How to sort results from ls command by modification date (directories first)?

I can fire ls -lrt to get files and folders sorted by modification date, but this does not separate directories from files. I want ls to show me first directories by modification date and then ...
3
votes
2answers
1k views

Mount a device as another user

Is there a command (on Debian Wheezy) that a testuser that belongs only to the group testuser can run (maybe he needs to be listed in sudoers first) in order to mount a USB stick as if he belonged to ...
1
vote
2answers
500 views

Dual boot Win8/Fedora19

I just installed Fedora 19 (gnome, 64 bit), in addition to my Windows 8 installation. But when I start the computer, it goes straight to windows, not providing any option to boot into Fedora. How do I ...
5
votes
2answers
1k views

Does linux kill heavy and long running background processes after they reach some threshold?

If I start a really heavy (memory/cpu intensive) running really long running process will the OS terminate it after a period of time arbitrarily? I.e. are there any limits beyond which the OS would ...
1
vote
1answer
2k views

How to use 32 bit compiled shared object (.so) file on 64 bit RHEL?

I have a shared object file libfault.so for my 32 bit compiled application on RHEL 6.4. I want to preload this file while starting my application. I have placed it in /usr/local/lib/ directory. But ...
6
votes
1answer
2k views

limits that are set in an unmodified environment

If /etc/security/limits.conf has not been edited or changed, there are nothing but comments. However 'cat /proc/self/limits' shows there are some limits in effect. Are these compiled into the kernel? ...
4
votes
1answer
3k views

viewing dll and exe file properties/attributes via the command line

I have a need to see some additional file properties for exe and dll files. If I open windows explorer and add the additional columns to my view, I can see things like Company, Copyright, Product ...
0
votes
2answers
189 views

Daemon not running when started over ssh

I'm trying to start the rngd daemon by remotely starting it via ssh. Unfortunately it does not seem to run until I log onto the machine. The command I'm using is: ssh -n -o StrictHostKeyChecking=no -...
2
votes
1answer
556 views

Generate interrupts for purpose of stress testing

I'm testing the quality of a generated PWM signal on a Raspbery Pi. I would like to test how it behaves if there are lots of interrupts coming. Is there a way to fake interrupts or force 2000 ...
3
votes
0answers
87 views

LXC: Have rootfs mounted without nosuid

I have the container's rootfs in a volume mounted with the nosuid option. When I start the container, its / mounted is then also mounted nosuid, which breaks programs such as sudo. How can I avoid ...
1
vote
2answers
16k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
1
vote
1answer
342 views

How to ftp as root?

I can ftp to a linux server by doing ftp server But I can't do that with root. Need sftp or something or what?
13
votes
2answers
4k views

Why does Linux require moving IP from eth interface to bridge interface

When a network interface (e.g., eth0) is added to a Linux bridge (e.g., br0), the IP address must be removed from eth0 and added to br0 for the networking to function properly. I recall reading in ...
1
vote
3answers
122 views

Confused on user and su in linux

How could I run a script as a specific user (non-root)? As this? sudo su - john /usr/share/script.pl for user john?
0
votes
1answer
925 views

Gentoo 3.8.13 x86_64 Update problem

I am trying to perform full system update for my Gentoo 3.8.13 x86_64 emerge --update --deep --with-bdeps=y --newuse world But I am getting the following error !!! Problem resolving dependencies ...