Questions tagged [linux]

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.

In a narrow sense, Linux is a Unix-like kernel started by Linus Torvalds in 1991.  For questions that are specifically about the kernel (e.g., how to configure and build it), use the tag .

The word “Linux” is commonly used to refer to an operating system built around the Linux kernel.  This operating system includes many other components, notably from the GNU project, so the term GNU/Linux is preferred.  This operating system can also be run without the Linux kernel, and is often, confusingly, still referred to as Linux.

There are many different GNU/Linux distributions (see ), including more or less the same programs but with different installers (see ), package managers (see ), and other customizations.  Examples of common distributions are: , , , , , , , and .

Use this tag for questions that are specific to Linux-the-operating-system (GNU/Linux), such as hardware support, networking setup, filesystems, etc. Most questions should have other tags to identify the area of interest, e.g., , , , , , etc.

The Linux kernel is used in some non-unix-like embedded operating systems, the best known being Android. These operating systems are off-topic here (you can ask questions about using Android on Android Stack Exchange).

Further reading

38730 questions
110
votes
10 answers

Does `sl` ever show the current directory?

For those out of the loop, sl is a humourous command line tool that is meant to trip people up if they mistype ls. When invoked it prints a Steam Locomotive. For example: ( ) (@@) ( ) (@) () @@ O @ O @ …
user53306
67
votes
1 answer

What's the difference between poweroff and halt?

To turn off my system, I can use one of these three commands: sudo halt Or: sudo poweroff Or: sudo shutdown -h now What are the differences between these commands, or are they all just aliases of each other?
Will
  • 791
28
votes
1 answer

How a 64-bit process virtual address space is divided in Linux?

The following image shows how a 32-bit process virtual address space is divided: But how a 64-bit process virtual address space is divided?
Christopher
  • 441
  • 1
  • 4
  • 5
20
votes
4 answers

How to find the size of an unmounted partition on Linux?

I am using tune2fs, but it gives data in blocks, and I can't get the exact value of total size of the partition. I have also used fdisk -l /dev/mmcblk0p1, but the size am getting from here is also a different value. How can I find the exact…
18
votes
2 answers

Doesn't allowing a user mode program to access kernel space memory and execute the IN and OUT instructions defeat the purpose of having CPU modes?

When the CPU is in user mode, the CPU can't execute privileged instructions and can't access kernel space memory. And when the CPU is in kernel mode, the CPU can execute all instructions and can access all memory. Now in Linux, a user mode program…
18
votes
6 answers

Which cell phones run on the Linux kernel?

I know of the FreeRunner, but are there any other Linux cell phones out there? Are they any good?
Wayne Werner
18
votes
1 answer

swapon: /swapfile: read swap header failed: Invalid argument

#sudo dd if=/dev/zero of=/swapspacefile bs=1M count=2048k 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000417928 s, 0.0 kB/s #chmod 600 /swapspacefile mkswap: error: swap area needs to be at least 40 KiB Usage: mkswap…
ganesh
  • 181
  • 1
  • 1
  • 3
17
votes
3 answers

How much does the Linux kernel change in one year?

How can I get statistics about how much (in percents) the Linux kernel source code changes in one year?
LanceBaynes
  • 40,135
  • 97
  • 255
  • 351
16
votes
1 answer

How to assign a friendly name to a port number in Linux?

I'd like to assign a friendly name to a port number, how should I do it? For example: I'd like "0.0.0.0:my-service-name" translates to "0.0.0.0:1234"
16
votes
6 answers

What is the Linux equivalent of Windows Startup?

Is there any way to add an application/script to the Linux startup so every time the system boots it will be executed? I am looking for some automated way, i.e. the user should not add this by cron job or something like that.
Sourav
  • 277
15
votes
2 answers

Where is the documentation for what sda, sdb, dm-0, dm-1 mean

If I run iostat I got sda0, sda1, I sort of know that those are the "hard disks". then there is dm-0, dm-1? I wanted to check the documentation. I checked http://linux.die.net/man/1/iostat it's not mentioned at all. Also my mount command shows…
user4234
  • 281
15
votes
5 answers

Good website to link to for generic linux advocacy

I would like to have a link on website, both advertising the fact that I use (GNU/)linux, and pointing the curious reader to a source to learn more information. But I'm having trouble finding the right place to link. Desiderata: Not distribution…
frabjous
  • 8,691
14
votes
7 answers

Why is Unix still used if Linux is based off of it, and Linux is free?

Also, it seems that Linux has a much friendlier user interface. Has Unix been trying to "keep up"?
13
votes
1 answer

My basic assumption about system "iowait" does not hold

My basic assumption is that when a process' only limiting factors are disk and CPU, then total system "iowait" + CPU usage should equal at least 100% of one logical CPU. (In other cases this will not hold. E.g. when downloading a file using wget,…
sourcejedi
  • 50,249
12
votes
3 answers

Why does Linux heat up my computer?

I have been using Linux on my Acer 5740 for a couple of years now. Lately, I noticed that my computer starts heating up and steadies at around 70 degrees. If I fire up Eclipse or ffmpeg or something, the computer shoots to 85-90 degrees. Maybe this…
user14517
1
2 3
66 67