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

6
votes
3answers
938 views

What exactly do we mean when we say we are using Linux?

I was going through an article on GNU which goes something like below There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: ...
1
vote
2answers
6k views

Linux reboot out of memory

I have a server with Intel(R) Atom(TM) CPU D525 and 1 GB memory. I noticed the server would shut down and restart automatically about every 7 days. I checked the memory usage and found that when the ...
1
vote
0answers
232 views

Virtual address of Global variables in Kernel code

If my understanding is not wrong, every process has a Kernel Address space associated with it (which is typically 1GB). As far as local variables are concerned, they are assigned on the kernel stack ...
1
vote
2answers
464 views

How can I combine grep with file and extra regex

I have a file of strings in each line. For example: AAAAA BBBBB CCCCC etc I want to check each string one by one whether it exists in a series of files in a specific directory. I ...
15
votes
2answers
3k views

What makes an operating system “Unix-Like”?

I frequently come across the term "unix-like" on many web sites. There is no standard; it is just in the way it behaves. But if I were to develop a kernel from scratch, what would make it considered ...
5
votes
3answers
2k views

How to test the quality of my network connection for VoIP services

Sometimes when using VoIP I experience disruptions. I would like to check if the problems could be caused by my internet provider. How could I best test the quality of my bandwidth (throughput and ...
34
votes
2answers
30k views

What is difference between User space and Kernel space?

Is Kernel space used when Kernel is executing on the behalf of the user program i.e. System Call? Or is it the address space for all the Kernel threads (for example scheduler)? If it is the first one,...
8
votes
4answers
515 views

Are short-lived files flushed to disk?

My program creates many small short-lived files. They are typically deleted within a second after creation. The files are in an ext4 file system backed by a real hard disk. I know that Linux ...
6
votes
2answers
4k views

Which file in kernel specifies fork(), vfork()… to use sys_clone() system call

When ltrace is used for tracing the system calls, I could see that fork() uses sys_clone() rather than sys_fork(). But I couldnt find the linux source where it is defined. My program is #include<...
1
vote
1answer
341 views

Clearing the “old” scrollback buffer

This might seem to be a duplicate question but it isn't. I know that I can use printf "\033f" to clear the scrollback buffer of the "current" session but that doesn't work for old sessions. My ...
0
votes
1answer
111 views

Linux development server [closed]

I have an issue. I want to set up a Linux development server on my home PC so everyone who has credentials can log in from anywhere into that machine and write code. What should I do or what should I ...
1
vote
2answers
483 views

How to build my own kernel ? Where should I start? [closed]

I have completed my graduation recently. And I have only basic knowledge in C. But I would like to work on the Linux Kernel, and customize it according to my needs. Not only customize I would also ...
0
votes
0answers
792 views

How to play set top box file in PC?

The recorded file has .mpg extension. I even tried playing in WMP and VLC and there is another file in USB with .NAV extension. Even tried Miro
2
votes
1answer
840 views

input/output error that come back just fine. How to make sure it doesn't happen again? [duplicate]

root@host [/backup/2013-08-15/accounts]# cd /home1 root@host [/home1]# ls /bin/ls: reading directory .: Input/output error root@host [/home1]# Suddenly /home1 doesn't work. It used to work just fine....
0
votes
1answer
312 views

How to generate kernel crash dumps? [duplicate]

I have X running on terminal 1 and terminal 2 on my RHEL 6.4 system. If i randomly switch between tty1 and tty2, the system crashes. I need to generate crash dump file to analyze the issue. How can I ...
6
votes
1answer
976 views

Capabilities for a script on Linux

If I want to set a capability (capabilities(7)), such as CAP_NET_BIND_SERVICE, on an executable file and that file is a script, do I have to set the capability (setcap(8)) on the interpreter starting ...
3
votes
1answer
1k views

Linux: How to check whether a process is slowed down by other running processes

I have one process running on a RHEL 6.3 machine. Somehow this is taking a longer processing time than the same process running on another machine. How is it possible to know why this process is ...
3
votes
1answer
342 views

What would happen if we mounted a file system that e2fsck is already running on?

It is generally a bad idea to e2fsck a file system while the file system is mounted (the man page mentions one specific situation where it is safe: -n given, and -c, -l or -L not given, and even then ...
1
vote
1answer
199 views

customize and pack a debian image

Given a vanilla Debian I need to: pick a filesystem configure the software ( writing .conf files and edit shell scripts ) install/remove packages install/remove software compiled by me After that ...
4
votes
1answer
305 views

Reusing older raid discs

I have a software RAID5 array (Linux md) on 4 disks; the OS is OpenSUSE 12.3. Recently I replaced a disc with a larger one (fail disc, remove it, add new disc). The capacity of the array has not yet ...
9
votes
1answer
1k views

How do I get the creation date of a file on an NTFS logical volume?

I created an NTFS logical volume on my Linux system for Windows file storage because I want to retain the creation date of my files (I would probably zip them into an archive and then unzip them, ...
4
votes
1answer
3k views

Start 4 programs on startup in Linux Mint via terminal

I'm working on a project and I hope you can help me solve a problem. I have four programs that are written in C. They have been compiled using gcc and they work as they should. Because the four ...
12
votes
3answers
3k views

Creating formatted partition from nothing

I need to create filesystem with just one partition from nothing (/dev/zero). I tried this sequence of commands: dd if=/dev/zero of=mountedImage.img bs=512 count=131072 fdisk mountedImage.img n ...
6
votes
1answer
5k views

anonymous url navigation in command line?

Is there any way to anonymize http requests through the command line? In other words, is it possible to wget a page without the requester's IP showing up?
1
vote
1answer
581 views

Problem with booting using nosmp

I tried to install RHEL 5.1 in an i3 processor machine with 2gb ram. So after installation I tried to boot up, but unfortunately the machine got freezed showing Starting udev. I dont know exactly what ...
14
votes
4answers
12k views

what do I need to do with “man: can't set the locale; make sure $LC_* and $LANG are correct”

I typed man sudoers but got man: can't set the locale; make sure $LC_* and $LANG are correct No manual entry for sudoers What does this mean?
3
votes
3answers
43k views

How do I know a specified user's permissions on Linux with root access?

I have root access to my local server. And some days ago my colleague created a user on that server, giving me the uesrname and password. But the user has a minimized permissions. Like the user can't ...
2
votes
3answers
543 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
55k 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
19k 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
271 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
3answers
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
7k 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
492 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
15k 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
257 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
5k 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
765 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
559 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
160 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 ...