LoginSignup
3
0

More than 3 years have passed since last update.

linux

Last updated at Posted at 2017-04-15

ssh

  • how to check ssh host key finger print
[root@localhost ssh]# ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub
2048 xx:xx:xx:xx:xx /etc/ssh/ssh_host_rsa_key.pub (RSA)

TCP wrapper

  • how to check tcp wrapper is used in CentOS 6
[root@localhost etc]# ldd /usr/sbin/sshd  | grep -i wrap
    libwrap.so.0 => /lib64/libwrap.so.0 (0x00007fdb92f99000)

awk

  • print "line 1" OR "column 3 has 'LINUX' strings".
awk 'NR == 1 || $3 ~ /LINUX/'
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0