Skip to main content

All Questions

Tagged with
206 votes
11 answers
41k views

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 ...
MaDa's user avatar
  • 2,013
159 votes
2 answers
316k views

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. ...
user1492502's user avatar
  • 1,693
106 votes
4 answers
479k views

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's user avatar
  • 3,194
93 votes
4 answers
178k views

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 ...
Abruzzo Forte e Gentile's user avatar
62 votes
9 answers
205k views

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 ...
haimg's user avatar
  • 22.7k
53 votes
3 answers
115k views

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 ...
Noob's user avatar
  • 1,625
53 votes
1 answer
97k views

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 ...
nelaaro's user avatar
  • 13.7k
49 votes
8 answers
116k views

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....
max's user avatar
  • 4,053
46 votes
7 answers
137k views

How to automatically run commands on SSH login?

Whenever I login to my Linux server I'd like to have several commands run automatically (set some variables, change location, etc.) This needs to be done on user login, not on system start. How can ...
Alasdair's user avatar
  • 867
46 votes
13 answers
188k views

what causes “systemd: Failed at step USER spawning /usr/sbin/opendkim: No such process”

How can I remove following error: systemd: Failed at step USER spawning /usr/sbin/opendkim: No such process It occurs when I try to start opendkim service on Centos.
Syed's user avatar
  • 561
43 votes
10 answers
191k views

How can I add additional search domains to the resolv.conf created by dhclient in CentOS

When my CentOS virtual machine boots it uses DHCP to get an IP address. It also overwrites resolv.conf with the DNS settings provided by the DHCP server. The DHCP server doesn't supply any search ...
Martin Hilton's user avatar
42 votes
4 answers
221k views

Where Linux places the messages of boot?

I want to find place to where Linux writes all boot messages. You know: facility one [STARTED] facility two [STARTED] facility three [FAILED] I searched with find . -print0 | xargs -0 grep -...
Rodnower's user avatar
  • 2,209
40 votes
6 answers
140k views

yum hangs and won't respond

I am running yum check-update and it freezes after a 2 lines of output: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile I'm not sure what is happening. The last things I ...
barrrista's user avatar
  • 1,729
36 votes
6 answers
174k views

How to disable ipv6 on a specific interface in Linux?

Could someone tell me how to disable ipv6 auto-config on a specific network interface in CentOS? The current situation is: A PC has two network adapters eth0 and eth1 that are connecting to the same ...
Yves Messi's user avatar
36 votes
6 answers
79k views

To use ssh-id-copy do you need both id_rsa.pub and id_rsa?

I am trying to setup a second access ssh key for a friend. He sent me his id_rsa.pub. ssh-copy-id -i id_rsa.pub [email protected] /usr/local/bin/ssh-copy-id: ERROR: failed to open ID file './...
user avatar

15 30 50 per page
1
2 3 4 5
108