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
15
votes
11 answers

How can I diff two config files?

I've got two snmpd.conf files, one on a server that works, and one that doesn't. How can I diff the two config files while stripping out irrelevant comments and newlines?
jldugger
  • 14,342
  • 20
  • 77
  • 129
15
votes
2 answers

find files NOT belonging to group

How do I find files not belonging to particular group? find /home -group NOT test
Michael
  • 397
  • 1
  • 7
  • 15
15
votes
6 answers

Linux: Case-INSENSITIVE Filesystem

What methods are there to make the Linux filesystem case-INSENSITIVE ? I have asp.net applications developed on Windows, but there are always issues with capitalization/spelling on mono when putting it on Linux. One way is to mount a localhost SMB…
Quandary
  • 1,024
  • 4
  • 19
  • 36
15
votes
4 answers

Managing an application across multiple servers, or PXE vs cfEngine/Chef/Puppet

We have an application that is running on a few (5 or so and will grow) boxes. The hardware is identical in all the machines, and ideally the software would be as well. I have been managing them by hand up until now, and don't want to anymore…
matt
  • 1,152
  • 1
  • 8
  • 18
15
votes
3 answers

Peak memory usage of a process

Tools like top and ps can give me the amount of memory currently allocated to a process, but I am interested in measuring the maximum amount of memory allocated to a process either since its creation or in a given time interval. Any suggestions on…
davitenio
  • 375
  • 2
  • 5
  • 10
15
votes
8 answers

How many and which partitions should I create for a linux server?

Partitions are very important on Linux server because it give you a lot of flexibility, for example when upgrading to a bigger hard drive. But, how many partitions should I create when building a Linux box ? Which size should I set for each…
paulgreg
  • 4,154
  • 6
  • 33
  • 32
15
votes
2 answers

Unable to mount an XFS filesystem from Linux RAID6 array ("Log inconsistent")

First time poster - my apologies if I don't get the etiquette correct. I have a ~200TB RAID6 array with 30 disks and I'm unable to mount it - I just get the message: mount /dev/md125 /export/models mount:/dev/md125: can't read superblock If I run…
Bob
  • 151
  • 5
15
votes
5 answers

ubuntu servers - what do i need to do to keep it uptodate

I am setting up an ubuntu server and want to know what I should be doing on it regularly. apt-get update/upgrade seems obvious. Is there a glsa check for example? Anything else I should be running? I guess it depends on what is installed, but I am…
Chris Kimpton
  • 723
  • 9
  • 18
15
votes
4 answers

read specified range of lines from a file

I have i file that contains 100000 line how i can get the lines from line# 5555 to line# 7777 under linux. Thanks for all.
ibrahim
14
votes
4 answers

Is it insecure to have an ansible user with passwordless sudo?

I'm new to Ansible. Most VPS provisioning guides I've seen so far do this: disable root from logging in create a new user who can only log in with ssh (not password) add the new user to the wheel group, with passwordless sudo permission I…
lonix
  • 896
  • 10
  • 23
14
votes
4 answers

SSH if command output is more than about 5 lines

I've been advised to ask this question here: I'm baffled by the following issue I'm currently experiencing. I have a Debian 5.0 Linux server connected via an ethernet cable to my DSL router. My laptop is running Windows 7 and is connected wirelessly…
user91234
14
votes
2 answers

Is rsyslog redundant on when using journald?

I have noticed log messages are duplicated in journald and /var/log/messages on my CentOS 7 system. At first I thought it was the journald option ForwardToSyslog (which defaults to 'yes' in the installed version) which caused this behavior, but…
joaerl
  • 397
  • 1
  • 3
  • 11
14
votes
2 answers

How to SSH directly to target via jumphost using SSH Config without additional ssh command

If I do: ssh -J jumphost.example.com target.example.com I end up immediately logged on to 'target'. If I use this ssh config file, using the newer ssh-7.3 jump config: Host jump 10.1.*, targets*, *.example.com HostName jumphost.example.com …
ZZ9
  • 888
  • 3
  • 16
  • 47
14
votes
4 answers

Hot clone a living Linux service

We need to hot clone a Linux service when it's alive, not just because of we can't reboot or something; it's just because of our special scenario (yeah, I've already read this answer, but it's a little bit different from mine Clone a working Linux…
chen steven
  • 141
  • 1
  • 3
14
votes
3 answers

Running out of memory running fsck on large filesystems

I look after an old Debian linux box (running etch) with only 512 MB of RAM, but a lot of external storage attached. One ext3 filesystem is 2.7 TB in size, and fsck can't check it, because it runs out of memory, with an error such as this one: …
TimB
  • 1,430
  • 2
  • 15
  • 19
1 2 3
99
100