Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

GNU/Linux is a UNIX-like Open Source operating system. Linus Torvalds originally wrote the Linux kernel with contributions from others on the MINIX usenet board. Since then, Linux had thousands of developers, both paid by companies and volunteers. The main system tools and libraries for GNU/Linux are sourced from the GNU Project, hence the nomenclature GNU/Linux (GNU Toolchain over Linux Kernel). The Linux kernel is licensed under the GPL v2 license.

There are many different Linux Distributions (sometimes shortened to distro), which consist of software applications packaged and provided with the Linux kernel, being Slackware the oldest active distro and Debian, Red Hat and CentOS among the most used on Internet servers¹.

The Linux kernel is commonly run on servers but is highly portable and is used in a variety of applications, from wireless routers and cell phones to clusters and super computers with thousands of nodes and processors.

External Resources:

38271 questions
14
votes
1 answer

Linux find command is misbehaving

Searching for system-resolved service following the recent vulnerability disclosure, I came to see a very strange behavior from find command. root@localhost:/# find . -name…
user2808671
  • 183
  • 10
14
votes
3 answers

How to programatically add secure_path in sudoers file

I'm trying to build a user data script for an EC2 instance that builds node and npm from github, and then starts a service. To grease these wheels, I need to add: :/usr/local/bin to the end of the line in /etc/sudoers which starts: Defaults …
belial
  • 263
  • 2
  • 7
14
votes
2 answers

Use ip route add to add multicast routes to multiple interfaces

TLDR: Is there a way to use "ip route" to add multicast routes for multiple NICs? We have software that uses two multicast groups to communicate with two different groups of devices on two separate physical networks. With the exception of this…
gnac
  • 243
  • 1
  • 2
  • 7
14
votes
2 answers

Good practice regarding multiple package management systems

Some programming languages come with their own package management system, for instance, in the case of R, the built-in install.packages command installs from the CRAN repository and deals with dependencies. In parallel, OS come with their own…
bli
  • 243
  • 1
  • 7
14
votes
2 answers

Disable Daylight Saving Time (DST) Changes in Linux

A few weeks ago, it is announced (by The Energy and Natural Resources Ministry of Turkey) that DST will be permanent and GMT+3 will be used forever in the country. Currently, timezone of our Linux servers is set to Europe/Istanbul. But no tzdata…
vaha
  • 516
  • 1
  • 3
  • 9
14
votes
2 answers

stress-ng: Simulate specific cpu percentages

Linux environment: Debian, Ubuntu, Centos Goal: Test monitoring program that set alarms and trigger different alarms at different cpu percentages. ex: (30-50%), (51-70%) and >90% So I need a cpu stresser that can simulate specific cpu percentage per…
AJN
  • 436
  • 1
  • 4
  • 13
14
votes
16 answers

Suggest a lightning fast, feature-light, secure Linux web server to serve static content

The list of must-have requirements: be able to serve static HTML pages and files (images, compressed archives, ASCII text files etc) over HTTP. be Resource conservative. It uses what's needed to send data over the network in form of memory and CPU,…
Deleted
  • 1,832
  • 8
  • 23
  • 31
14
votes
1 answer

How does CPU affinity interact with cgroups in Linux?

I'm trying to run multi-threaded benchmarks on a set of isolated CPUs. To cut a long story short, I initially tried with isolcpus and taskset, but hit problems. Now I'm playing with cgroups/csets. I think the "simple" cset shield use-case should…
Edd Barrett
  • 963
  • 3
  • 9
  • 20
14
votes
15 answers

Build a low-power file server

I would like to build a file server for backups. The server needs to be available 24/7 in a mixed Windows/Linux network, but service should not exceed 1 hour per day. Thats why power consumption is my main priority. What do you think is the best…
karatchov
  • 415
  • 2
  • 7
  • 11
14
votes
1 answer

systemd Using 4GB RAM After 18 Days of Uptime

I have a web server running CentOS 7, on which the systemd process is using nearly 4 GB of RAM after a couple weeks of uptime. RAM usage is increasing steadily at about 200MB per day. This and related processes like systemd-logind and dbus-daemon…
meridionaljet
  • 351
  • 2
  • 4
  • 10
14
votes
1 answer

How do you create a qcow2 file that is small yet commodious on a Linux server?

I believe that there are qcow2 files that displace a small amount of gigabytes on a server (as verified with a df -h on the physical server) yet allow for lots of space when you log into the virt-manager VM and issue a df -h. How do you create such…
Catbird55
  • 163
  • 1
  • 1
  • 6
14
votes
3 answers

The same IP on multiple interfaces

Hello networking gurus, I've got a Linux (kernel 3.14) server which acts as a TFTP, NFS and HTTP server for a farm of consumer electronics devices (set-top boxes - STBs). The devices use TFTP to boot their kernels from, then mount their root FSes…
Leszek
  • 361
  • 2
  • 4
  • 12
14
votes
1 answer

AuthorizedKeysFile line commented out but still seems to work

I'm setting up a server on Linode and following their Securing Your Server guide. They recommend setting up ssh key pair authentication. I have already uploaded my public key to server and the key pair authentication seems to work fine, but how does…
Adam Johns
  • 315
  • 1
  • 2
  • 7
14
votes
3 answers

How to find faulty memory module from MCE message?

I am trying to understand MCE message to find which memory module is bad on a server. This message appears in /var/log/kern.log in one server that freezes two times today. Apr 13 22:39:22 mbox kernel: [36247975.116860] sbridge: HANDLING MCE MEMORY…
Matg
  • 141
  • 1
  • 1
  • 3
14
votes
2 answers

cp -p will preserve times for some files but not all?

I have a source directory on a machine with a bunch of files, all with the same permissions, that I want to copy to another directory, that is mounted via SMB. [tmark@dexter JR09141045 roche_454_transfer]$ ls -l /source_dir total 71348 -rwxrwxrwx 1…
tmark
  • 141
  • 1
  • 1
  • 6
1 2 3
99
100