Linux_Learning_Notes2

SELinux is upon basic ACL

setenforce 0|1

/etc/sysconfig/selinux

swapon -a

system-config-kickstart

ksvalidator

/root/anaconda-ks.cfg

cdrecord boot.iso

dd if=boot.iso of=/dev/sdb1

ks=http://server/directory/file
ks=ftp://server/directory/file
ks=nfs://server/directory/file
ks=hd:device:/directory/file
ks=cdrom:/directory/file

openssl -> protocol
openssh	-> daemon

/etc/ssh/ssh_host*

tar zxf etc.tar.gz -C /opt/
tar jxf etc.tar.gz -C /opt/

tar rf etc.tar /boot
tar zf etc.bar.gz --get etc/passwd
tar f etc.tar --delete etc/passwd

###VIM###
:%s/bash/wxh/g
:44,53s/bash/wxh/g

:w !sudo tee %

cp filename{,.back}


ip addr show eth0
ip route
ip -s link show eth0

/etc/sysconfig/network
/proc/sys/kernel/hostname

/etc/nsswitch.conf

PREFIX=24



BOOTPROTO=static|dhcp|none
IPADDR=192.168.0.254
PREFIX=24
GATEWAY=192.168.0.254
DNS1=192.168.0.254
DEVICE=eth0
ONBOOT=yes
HWADDR=52:54:00:00:00:FA
NM_CONTROLLED=yes
PEERDNS=no

ifcfg eth0:3 add 192.168.0.23/24

sestatus

###VSFTPD###
use_localtime=YES
dual_log_enable=YES


getsebool -a | grep ftp
setsebool ftp_home_dir on

tail -f /var/log/message

/etc/udev/rules.d/70-persistent-net.rules

IP -> GATEWAY -> DNS

ifconfig eth0:0 down

ifconfig eth0: 192.168.1.12

ifdown ifup

rpm -qf `which ping`

sudo !!

python -m SimpleHTTPServer

> filename.txt

cat /dev/urandom | ssh user@hostname aplay

mount | column -t


Find the last command that begins with 'whatever', but avoid running it
!whatever:p

lftp -> debug

你可能感兴趣的:(linux)