chmod 777 tt //소유권자 외 권한 부여
-> -rwxrwxrwx
chmod 700 tt // 소유권자 외에 권한을 부여하지 않겠다.
-> -rwx------
ls
ls -al
cd testServer 상대경로
cd /testServer/ 절대경로
pwd
ip a
ipconfig -a
net-tools
yum list installed | grep "net-tools"
bindutils.x86_64
netstat -rn (라우팅 정보)
trap
tracepath
ifconfig ens33 192.168.72.100 netmask 255.255.255.0 up
ifconfig
route
netstat -rn
(3개다 내려야한다)
route add default 192.168.72.2
systemctl list-unit-files | grep -i NetworkMan
(보통 꺼놓는 편이 좋음)
systemctl list-unit-files | grep -i firewall
cd /etc
mv test test222
(파일 이름 바꾸기)
\rm
rm
rm test1
touch test1
\rm test1
ls -al
cd /
\rm -rf /* (절대 하면 안됨! OS가 통채로 날라감)
\rm -r test222/
mkdir test222
\rm -f test222/
->에러
\rm -r test222/
touch
cat
cd /etc
cd sysconfig
cd network-scripts
grep
rpm -qa | more
rpm -qa | grep -i nfs (대소문자 필요없이 nfs란 문자를 찾겠다)
df -h
df -k (kilo단위)
df -i (inode값)
cd var
du -sh (현재 디렉토리의 최종 크기 mb)
top
virt 사용할 메모리
res 메모리 중 실제 사용하는 부분
yum 패키지는 레퍼지토리나 웹같은 곳에서 긁어 온다
yum list installed | grep -i nfs
rpm 각각의 rpm을 설치하고 싶다면 rpm 파일을 통해 설치
rpm -ivh
-ef | more
cd /
find ./ -name ls
history | grep mount
\rm -rf
rpm -ivh
createrepo /repo/local
yum을 지웠기 떄문에 mount를 해놓고 설치를 하는게 의존성을 자꾸 설치하라는 것에 좋을 수 있다.
yum clear all
기존의 yum 캐시 삭제
Loaded plugins: fastestmirror
Error
File contains no section headers.
file: file:///etc/yum.repos.d/local-CentOS7.repo, line: 1
ip static으로
DHCP는 임의적으로 설정해놓음
상용할 때에는 IP를 고정시켜놓음
vi 통해서 [CentOS-local]