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
9 answers

Bash snippet to move all files in a directory into that directory

I have a directory with lots of files and directories in it. In order to tidy it up, I'm going to put all those files into a directory, so I was going to do something like this: $ ls | wc -l 123 $ mkdir new_directory $ mv * ./new_directory However…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
15
votes
3 answers

How to fix a crontab access issue with a pam configuration error message?

I attempted to access my crontab as the non-root user "coins" when I encountered a permissions issue as shown in the following error message mentioning the pam configuration: [coins@COINS-TEST ~]$ crontab -l Authentication service cannot retrieve…
Raj
  • 161
  • 1
  • 1
  • 3
15
votes
3 answers

Block outgoing connections on RHEL7/CentOS7 with firewalld?

RHEL7/CentOS7 features a new firewalld firewall service, that replaces the iptables service (both of which use iptables tool to interact with kernel's Netfilter underneath). firewalld can be easily tuned to block incoming traffic, but as noted by…
golem
  • 347
  • 1
  • 3
  • 11
15
votes
5 answers

Proper way of interpreting system load on a 4 core 8 thread processor

As we all know, load of 1.00 on a single processor means that there is a load of 100%. Analogically a 4.00 load on a quad core would be 100%. How should I interpret load on a 4 core 8 thread processor ? When do I reach CPU's maximum capacity ? At…
Bartek Szablowski
  • 363
  • 2
  • 3
  • 7
15
votes
2 answers

Is there a way to create a "one-time" boot entry in grub?

I have the following issue: I have a small server (Debian based) to which I can connect remotely (VPN/SSH connection). Now I want to change some boot options (in fact I want to migrate my root file system to another partition) and therefore I have…
Christian Wolf
  • 308
  • 3
  • 9
15
votes
1 answer

Understanding service --status-all output

I am trying to understand the output of the service --status-all command on Ubuntu 13.10, since the man page doesn't explain it. For example: [ + ] rsyslog [ - ] sendmail [ ? ] sendsigs [ + ] setvtrgb [ - ] ssh What do +, -, ? mean? I can't…
p4sh4
  • 251
  • 1
  • 2
  • 7
15
votes
1 answer

Make sshd listen to a specific interface

On my machine I'm using OpenVPN which use the tun0 interface. I want sshd to listen only on this interface. I know, I can specify the IP address to listen to in /etc/ssh/sshd_config with a ListenAddress 0.0.0.0 directive. But my IP address will…
Philipp
  • 505
  • 1
  • 5
  • 13
15
votes
1 answer

Why did rebooting cause one side of my ZFS mirror to become UNAVAIL?

I just recently migrated a bulk data storage pool (ZFS On Linux 0.6.2, Debian Wheezy) from a single-device vdev configuration to a two-way mirror vdev configuration. The previous pool configuration was: NAME STATE READ…
user
  • 4,335
  • 4
  • 34
  • 71
15
votes
1 answer

rsync: getcwd(): No such file or directory (2)

I want to sync Server1 and Server2's logs to LogServer. For Server1: rsync -avz -e 'ssh -p 2188' user@server1:/usr/local/servers/logs/* /usr/local/logs/ This one works, but for Server2: rsync -avz -e 'ssh -p 2188'…
WoooHaaaa
  • 1,605
  • 4
  • 15
  • 13
15
votes
14 answers

Vagrant Error: Connection timeout. Retrying

I have a server with Ubuntu 12.04, Virtualbox 4.3 and Vagrant 1.5.1. I'm trying to use this box http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box however unsucessfully. When I run "vagrant up" I get this message: Bringing machine…
PoLIVoX
  • 195
  • 1
  • 1
  • 6
15
votes
5 answers

SSH issues: Read from socket failed: Connection reset by peer

I compiled OpenSSH_6.6p1 on one of our server. I am able login via SSH to the upgraded server. But I am not able to connect to other servers running OpenSSH_6.6p1 or OpenSSH_5.8 from this. While connecting I am getting an error as below. Read from…
nitins
  • 2,579
  • 15
  • 44
  • 68
15
votes
2 answers

HTTPS SSH Tunnel

Ok so I have a web server, lets call it Server A, which is providing a service via HTTPS. And I have an SSH gateway server, lets call it Server B. Due to firewall rules I cannot access Server A's web service from my desktop linux computer. Therefore…
Jacob Tomlinson
  • 403
  • 2
  • 5
  • 15
15
votes
2 answers

ldap_add no such object (32) matched dn dc=domain dc=com

When im trying to import users to LDAP using this command: ldapadd -x -D "cn=Manager,dc=domain,dc=com" -W -f /etc/openldap/root.ldif I have this error: ldap_add no such object (32) matched dn dc=domain,dc=com Let me show you the…
PookPook
  • 261
  • 1
  • 2
  • 9
15
votes
3 answers

Is there a mechanism in Unix (or Linux) to stop an in-progress core dump?

Let's say a (very) large process is crashing and dumping core, and we know the cause from other information (possibly an assert message, maybe something else). Is there a way to stop the core dump from being completely generated, since it's a waste…
Mike G.
  • 401
  • 3
  • 14
15
votes
3 answers

How to Set Up Linux Server As A Router with NAT

We have a simple router which has NAT of symmetric type, but because this router doesn't provide us with any debugging interface, we cannot figure out if a specific packet reaches the NAT or not. Thus we want to setup a LINUX computer making it…
Steve Peng
  • 559
  • 1
  • 8
  • 18