기계 작업 2019년 7월 23일

1 , 명령과 함께 찾아 주시기 바랍니다 ifconfig를 절대 경로 명령 프로그램

[루트 @ localhost를 ~] # 하는 ifconfig를

는 / usr / sbin에 / ifconfig를

도 2는 외부 커맨드는 내부 커맨드 명령을 표시하기 위해 다음의 명령을 사용하여주십시오 ? (CD \ PWD \ LS \ ifconfig를 \ 뒤)

[루트 @ localhost를 ~] # 개 에서 cd

CD는 A는 내장 ( 우리는 명령 볼 수 있습니다 CD 내부 명령 )

[루트 @ localhost를 ~] #의 유형 PWD 

PWD는 A는 포함 ( 따라서 명령 PW D는 내부 명령이다 )

[루트 @ 로컬 호스트는 ~] #의 ls를 입력

LS는 이다 `LS --color = 자동차 ' 별명

[루트 @ localhost를 ~] #의 유형은 ifconfig

ifconfig를는 은 / usr / sbin에 / ifconfig를 ( 따라서 순서 infonfig 외부 명령 부 )

[루트 @ localhost를 ~] #의  유형 뒤

뒤은 이다 (은 / usr / 빈 / 뒤는 따라서 순서 뒤를 외부 부 명령 )

3 의에 / 디렉토리를 생성 ABC

   제발 / 디렉토리를 생성 / liangjian / liyunlong / weiheshang / duanpeng

   제발 / ABC는 먼저 아래에 만들어 1000 자신의 이름을 개발하는 디렉토리.

[루트 @ localhost를 ~] #에서 mkdir / ABC /

[루트 @ localhost를 ~] #에서 mkdir -pv / liangjian / liyunlong / weiheshang / duanpeng

MKDIR : 우리는 디렉토리를 생성 한 "/ liangjian"

MKDIR : 이 만든 디렉토리 "/ liangjian / liyunlong"

MKDIR : 디렉터리를 생성 한 "/ liangjian / liyunlong / weiheshang"

MKDIR : 디렉터리를 생성 한 "/ liangjian / liyunlong / weiheshang / duanpeng"

[루트 @ localhost를 ~] #에서 mkdir /abc/a{1..1000}

 

4 모드 절대 경로 스위치 / liangjian / liyunlong / weiheshang / duanpeng 디렉토리

PWD는 상위 디렉토리의 이름과 현재 경로를 보려면 ".." 모드로 전환 liyunlong / liangjian / 아래로

[루트 @ localhost를 ~] # cd를 / liangjian / liyunlong / weiheshang / duanpeng /

[루트 @ 로컬 호스트의 duanpeng] # cd를 ../../

[루트 @ localhost를 liyunlong] # 개의 PWD

/ Liangjian / liyunlong

 

(5) , 최초의 삭제 / ABC 당신이 만들 다음에 1000 에서, 디렉토리를 / ABC 방송 과의 경우 터치 한 후 작성 (20) 에 창을 STU 일반 읽을 수있는 문서의 시작, 문서 접미사 가 .txt

[루트 @ localhost를 ~] # rm을 -rf / ABC / *

[루트 @ localhost를 ~] # 1! / ABC /

[루트 @ localhost를 ~] # 터치 /abc/stu{1..20}.txt

[루트 @ localhost를 ~] # 1! / ABC /

stu10.txt stu12.txt stu14.txt stu16.txt stu18.txt stu1.txt stu2.txt stu4.txt stu6.txt stu8.txt

stu11.txt stu13.txt stu15.txt stu17.txt stu19.txt stu20.txt stu3.txt stu5.txt stu7.txt stu9.txt

 

6 , 사용하시기 바랍니다 CP의 명령 / 부팅 / 할 디렉토리를 vmlinuz를 파일이 선두에 카피 / ABC 낮은, 그들이 차지하는 디스크 공간의 크기를 볼 수 있습니다.

[루트 @ localhost를 ~] #의 CP / 부팅 / vmlinuz를-0-구조-c08f3a0bf78c4879ae40ebc6145d4b72 / ABC /

[루트 @ localhost를 ~] # cp를 /boot/vmlinuz-3.10.0-229.el7.x86_64 / ABC /

[루트 @ localhost를 ~] # 뒤 -h / ABC / vmlinuz를-0-구조-c08f3a0bf78c4879ae40ebc6145d4b72

가 4.8m / ABC / vmlinuz를-0-구조-c08f3a0bf78c4879ae40ebc6145d4b72

[루트 @ localhost를 ~] # 뒤 -h /abc/vmlinuz-3.10.0-229.el7.x86_64

가 4.8m /abc/vmlinuz-3.10.0-229.el7.x86_64

 

7 ,있는 인 vmlinuz 파일의 시작은 이름이 변경 KGC 에 추가로 절단 하여 / tmp 디렉토리를.

[루트 @ localhost를 ~] # MV / ABC / vmlinuz를-0-구조-c08f3a0bf78c4879ae40ebc6145d4b72 / ABC / KFG

[루트 @ localhost를 ~] # MV /abc/vmlinuz-3.10.0-229.el7.x86_64 / tmp를

[루트 @ localhost를 ~] # 1! / ABC /

KFG stu11.txt stu13.txt stu15.txt stu17.txt stu19.txt stu20.txt stu3.txt stu5.txt stu7.txt stu9.txt

stu10.txt stu12.txt stu14.txt stu16.txt stu18.txt stu1.txt stu2.txt stu4.txt stu6.txt stu8.txt

[루트 @ localhost를 ~] # 1! / tmp를

SSH-6The1uaXtwo7는 systemd-민간 MeXSSx 인 vmlinuz-3.10.0-229.el7.x86_64 yum_save_tx.2019-07-23.14-25.r7V0X8.yumtx

systemd-민간 0mOJHI systemd-민간 TLsg1l yum_save_tx.2019-07-23.14-25.GHISC2.yumtx

 

8 의 참조 / tmp를 /을 디렉토리로 인 vmlinuz 파일의 상세 시작 상태 정보를 표시합니다.

[루트 @ localhost를 ~] # 합계 / tmp를 / vmlinuz를 *

  파일 : "/tmp/vmlinuz-3.10.0-229.el7.x86_64"

  크기 : 5029136    블록 : 9,824 IO의 블록 : 4096    일반 파일

장비 : fd00h / 64768d 소유자의 그룹 아이디 : 35,776        하드 링크 : 1

권한 : (0755 / XR -를 rwxr-X) UID : (0 / 루트) 기드 : (0 / 루트)

环境: unconfined_u : object_r : default_t : S0

마지막 방문일 : 2019-07-2319 : 10 : 26.887803171 0800

최근 변경 : 2019-07-2319 : 08 : 47.158517874 0800

최근 변경 : 2019-07-2319 : 12 : 46.461333112 0800

만든 사람 : -

 

(9) 와, 찾아 명령 찾기 / tmp를 디렉토리에 vmlinuz를 시작하고보다 큰 1M의 파일

[루트 로컬 호스트의 tmp를 @] # 찾기 / tmp를 / -name "인 vmlinuz *"-a -size + 1M

/tmp/vmlinuz-3.10.0-229.el7.x86_64

추천

출처www.cnblogs.com/hfh1/p/11233936.html