명령 실험


 
명령 실험 보고서
W 의 용법

		w:            
		  :w  【  】 【  】 
eg:

마지막 (lastb) 명령

	                  (        )
	  :      ,    /var/log    wtmp  
	  :last [  ] [-n     ]
		           -d                   ip         
			   -a                             ip       
				-R                             ip
				-x                 。  。      

dmesg 명령

	                 :      ,    /var/log    dmesg  
	  :dmesg  【  】
					-c               ,  ring  buffer   
					-s		        ,  8192
					-n  		        

split 명령

	      ,         !
	split 【  】【input】【output】
			-b   size                       ,b  512bytes ,k  1KB, m  1MB
			-n           	                     
			-d                                   
			-a                           
eg1: 1.txt      ,         2k,      3,       
	[root@localhost 1]# split -b 2K  -d  -a  3 1.txt 1.txt_bak

dd 명령

	     ,       
	  :dd   if=”input_file”  of=”output_file”  bs=”block_size”  count=”number”
eg1:	  /etc/inittab /root/1/inittab.bak
		dd if=/etc/inittab  of=/root/1/inittab.bak	
		  :              ,      512Bytes ,1+1 1          
eg2:    
		dd if=/root/1/inittab.bak  of=/etc/inittab
		  :     ,        ,          !

Cpio 명령

	                ,       ,      “.cpio” “.tar”     
	  :cpio 【  】 》        	
		    cpio 【  】 《        
				      
 					 -i, --extract                      (   copy-in   )
 					 -o, --create                   (   copy-out   )
					  -p, --pass-through            copy-pass   
					  -t, --list                         
					  -B                            I/O      5120   
 					 -c                                 
					  -f, --nonmatching                          
 					 -H, --format=                          
					  -n, --numeric-uid-gid               ,      UID    GID
  :
 			 #    name-list       archive
				  cpio -o < name-list [> archive]
			  #   archive      
				  cpio -i [< archive]
				  #    name-list          (destination-directory)
					  cpio -p destination-directory < name-list
eg1: /1            /1.cpio

eg2:       
	[root@localhost 1]# cpio -icdvt <1.cpio 
eg3:    ,           
		[root@localhost 1]# cpio -icdvt <1.cpio>/tmp/st_content
eg4:          ,         ,        ,   ,       
	[root@localhost 1]# cpio -icdvu < 1.cpio

du 명령

	                  
	  :du  【  】       
		              -s                                       
				-b                                      
				-sm                             MB       
eg:  /etc     
	[root@localhost 1]# du -sh /etc/

fsck 명령

	             
	  :fsck   【  】【-t 《      》】【   】
	

sync 명령

	            (linux  3s      )

eject 명령

	       (  )

scp 명령

	      cp      (  SSH  )
	  :scp       @IP  :            linux    
		  scp        linux                @IP  :        	
eg1:scp /home/Boolean/a.tar.gz       [email protected]:/tmp                       

find 명령

	       


ac 명령
표 지 를 사용 하지 않 으 면 전체 시간 을 보고 합 니 다.예 를 들 어 ac (리 턴) 표시: total 5177.47 
ac -d (리 턴) 매일 총 연결 시간 표시
ac -p (리 턴) 모든 사용자 의 총 연결 시간 표시

좋은 웹페이지 즐겨찾기