Questions tagged [centos]

Community ENTerprise Operating System; a Linux distribution based on Red Hat Enterprise Linux widely used on web servers.

CentOS logo and text

CentOS is an Enterprise-class Linux distribution. It is free software in both senses of the word.

Tag usage

The CentOS versions on Super User have the version number appended to the tag:

Popular questions

See also

3203 questions
203
votes
11 answers

I accidentally typed password into bash command line

I accidentally typed my password into bash command line, mistaking the Last login: ... line for Wrong password (I was in a hurry). What do I do to cover my trace? What I did was editing .bash_history and deleting the offending line (had to relogin…
MaDa
  • 1,973
  • 3
  • 13
  • 11
154
votes
2 answers

create tar with multiple directories and file locations

I have some scripts and files located in various locations like: /etc/dir1 /var/www/html /home/somedir I want to make a tar file so that it copies files and folders with the location structure. When I untar to another location, all the files will…
user1492502
  • 1,643
  • 2
  • 10
  • 5
106
votes
4 answers

Checking what PHP version I'm running on Linux?

I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
Elitmiar
  • 3,084
  • 12
  • 40
  • 46
92
votes
8 answers

How to Install gcc 4.7.x/4.8.x on CentOS

What would be the easiest way to install gcc 4.7.x/4.8.x on a system with CentOS 6.2+? The default RPM package contains an older version of gcc.
Tomas Andrle
  • 3,092
  • 4
  • 31
  • 32
91
votes
4 answers

yum install gcc-g++ doesn't work anymore in CentOs 6.4

Today installed CentOs 6.4 fresh new on my workstation. I wanted to install g++. With my surprise I didn't succeed by using yum install gcc-g++ The thing is that even by doing a search I don't get any result. # No package available yum search…
Abruzzo Forte e Gentile
  • 1,725
  • 5
  • 17
  • 21
65
votes
4 answers

CentOS 7 VirtualBox no internet access

I am having trouble connecting my CentOS 7 guest to the internet. My VirtualBox Network configuration is as follows: Adapter 1: NAT; Adapter 2: Host-Only (vboxnet0) vboxnet0 is connected set up with DHCP with default VirtualBox parameters. In my…
Gasim
  • 785
  • 2
  • 7
  • 8
61
votes
5 answers

xrdp session: Login failed for display 0

I have just installed xrdp on my CentOs 7 following the steps in this article but could get as far as inputing my user name and password. Here's a screenshot of the error that I get after trying to log in: The xrdp-sesman.log file…
ambushed
  • 713
  • 1
  • 5
  • 6
60
votes
5 answers

SSH permission denied on correct password authentication

I could successfully SSH into my machine yesterday with the exact same credentials I am using today. The machine is running CentOS 6.3. But now for some reason it is giving me permission denied. Here is my -v print out, sshd_config, and ssh_config…
Kentgrav
  • 1,482
  • 1
  • 16
  • 18
59
votes
4 answers

What is the difference between CentOS "DVD" vs "Everything" ISOs

What is the difference between the DVD ISO and the Everything ISO? These options are presented on the CentOS download page but there is no explanation as to what the difference is.
Enrico Palattzo
  • 609
  • 1
  • 5
  • 3
59
votes
9 answers

How to stop kernel messages from flooding my console?

I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages. Klogd is not running (I'm using rsyslog) Rsyslog config does not direct anything to the console Even tried stopping rsyslog altogether Still something is flooding my…
haimg
  • 22,193
  • 16
  • 79
  • 113
54
votes
3 answers

Bidirectional clipboard not working in VirtualBox

I'm using VirtualBox Version 5.2.6 r120293 (Qt5.6.1). Guest OS: Windows 7 Ultimate (32-bit) Host OS: CentOS 7 I tried enabling bidirectional clipboard by going to Settings -> General -> Advanced and selecting Bidirectional form the dropdown menu for…
Bilesh Ganguly
  • 829
  • 1
  • 6
  • 16
49
votes
3 answers

Difference between ${} and $() in a shell script

$ echo $(date) Thu Jul 2 16:33:11 SGT 2015 $ echo ${date} $ name=foo $ echo $(name) ksh: name: not found $ echo ${name} foo Seems like ${variable} is the same as $variable, while $() is to execute a command. Why use ${} then?
Noob
  • 1,535
  • 5
  • 23
  • 36
47
votes
1 answer

what is run-parts in /etc/crontab, and how do I use it

I have been digging through my Linux system. To try and understand how it all works In the /etc/crontab file. I see the following # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root…
nelaaro
  • 13,149
  • 30
  • 84
  • 111
47
votes
8 answers

How do you automatically detect a new network card in CentOS 6 / RedHat?

I'm using CentOS 6 in a virtual environment. When cloning a virtual version of CentOS, the old eth adapters are "removed" and replaced with new ones and net MAC addresses. However, the ifcfg-ethn files still exist. I am trying to figure out how to…
Joshua
  • 4,362
  • 3
  • 24
  • 31
44
votes
7 answers

How to combine the 'tar' command with 'find'

The find command gives this output: [root@localhost /]# find var/log/ -iname anaconda.* var/log/anaconda.log var/log/anaconda.xlog var/log/anaconda.yum.log var/log/anaconda.syslog var/log/anaconda.program.log var/log/anaconda.storage.log After…
max
  • 3,893
  • 14
  • 53
  • 73
1
2 3
99 100