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
81
votes
10 answers

How to check the physical status of an ethernet port in Linux?

I want to check if a specified ethX is physically up or down. How do I do that with the command line?
Jader Dias
  • 4,705
  • 19
  • 50
  • 51
80
votes
8 answers

What should I do when I got the KEYEXPIRED error message after an apt-get update?

While updating my packages on a debian based system by a sudo apt-get update I've got that error message : Reading package lists... Done W: GPG error: ftp://ftp.fr.debian.org stable/non-US Release: The following signatures were invalid:…
paulgreg
  • 4,154
  • 6
  • 33
  • 32
80
votes
2 answers

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
DucDigital
  • 1,491
  • 3
  • 18
  • 26
79
votes
5 answers

Change default directory when I SSH to server

I was wondering if there is a way to change the default directory that I get put into after I SSH into my Ubuntu server. 99% of the time when I'm logging into my server, it is to access files within a specific directory: /var/www/websites Is there…
Bob Flemming
  • 1,245
  • 3
  • 14
  • 17
78
votes
9 answers

What is the debian-sys-maint MySQL user (and more)?

I have been bitten several times by the 'debian-sys-maint' user that is installed by default on the mysql-server packages installed from the Ubuntu repositories. Generally what happens is I pull a fresh copy of our production database (which is not…
Joe Holloway
  • 1,909
  • 3
  • 19
  • 17
78
votes
11 answers

Allow SCP but not actual login using SSH

Is there any way to configure a user on a Linux box (Centos 5.2 in this case) so that they can use scp to retrieve files, but can't actually login to the server using SSH?
DrStalker
  • 6,946
  • 24
  • 79
  • 107
78
votes
5 answers

In Linux, what is the difference between "buffers" and "cache" reported by the free command?

This is an old question that I've seen from time to time. My understanding of it is rather limited (having read about the differences a long time ago, but the factoid(s) involved never really stuck). As I understand it, Buffers Are used by…
Avery Payne
  • 14,536
  • 1
  • 51
  • 88
77
votes
3 answers

How to handle relative urls correctly with a reverse proxy

I have a reverse proxy setup as follows in Apache: Server A with address www.example.com/folder is the reverse proxy server. It maps to: Server B with address test.madeupurl.com This kind of works. But the problem I have is, on…
Hard worker
  • 879
  • 2
  • 8
  • 11
77
votes
4 answers

How to find the physical volume(s) that hold a logical volume in LVM

I have a volume group (VG) that contains two physical volumes (PV). Several logical volumes (LV) in the VG are likely to use extents on both PVs. Is there a way to tell which LVs occupy space on which PVs?
Paul
  • 1,918
  • 4
  • 18
  • 24
77
votes
11 answers

Where's the conventional place to store git repositories in a linux file system tree?

If I make an analogy with the hosting of a web server, I would say that git's data should be in /var/git, so my git repository would be in /var/git/myrepo Q: Is that the right guess ?
Samuel Rossille
  • 906
  • 1
  • 8
  • 13
77
votes
2 answers

what does "***" mean when traceroute

this is the result of my traceroute traceroute 211.140.5.120 1 141.1.31.2 (111.1.31.2) 0.397 ms 0.380 ms 0.366 ms 2 141.1.28.38 (111.1.28.38) 3.999 ms 3.971 ms 3.982 ms 3 142.11.124.193 (112.11.124.133) 1.315 ms 1.533 ms 1.455 ms 4 …
larry
  • 4,037
  • 9
  • 36
  • 42
77
votes
7 answers

How do I join two named pipes into single input stream in linux

Using the pipes (|) feature in Linux I can forward chain the standard input to one or several output streams. I can use tee to split the output to separate sub processes. Is there a command to join two input streams? How would I go about this? …
Brad
76
votes
9 answers

memcache vs memcached?

I want to use memcached http://www.danga.com/memcached/ I have installed it through yum install memcached But now I need to connect to PHP, and there is an extension named memcache and one named memcached?…
thanksyo
  • 839
  • 2
  • 8
  • 8
76
votes
5 answers

How to properly set permissions for NFS folder? Permission denied on mounting end.

I'm trying to connect to an NFS folder on my dev server. The owner of the folder on the dev server is darren and group darren. When I export and mount it to my Mac using the Disk Utility it mounts, but then when I try to open the folder is says I do…
Darren
  • 997
  • 2
  • 8
  • 15
74
votes
5 answers

What is the correct way to open a range of ports in iptables

I have come across articles advising for the following: iptables -A INPUT -p tcp 1000:2000 -j ACCEPT And others stating that the above will not work and iptables only supports multiple port declarations with the --multiport option. Is there a…
Paul Whalley
  • 763
  • 1
  • 7
  • 6