Linux 기본 명령 1

10807 단어 기본 명령
alias        shell           
alias+          
at               
    -f                 
    -q              
    -l              
    -d              
    -m                E-mail
authconfig        
basename               
batch                  
    -f                 
    -q              
    -m               E-mail
bc         
bg             
brctl        
break            (    shell   )
cal 9 1752      1752 9    
cat        
    -E:      $
    -n:            
    -A:       
    -b:     
    -s:           
cat /etc/centos-release          
cat /etc/shell                shell
cat /proc/meminfo            free           
cd         
    -E:      $
    -n:            
    -A:       
    -b:     
    -s:           
chage            、    
    -d LAST_DAY
    -E --expiredate EXPIRE_DATE
    -I --inactive INACTIVE
    -m --mindays MIN_DAYS
    -M --maxdays MAX_DAYS
    -W --warndays WARN_DAYS
    -l        
chattr            (i、a、A)
chfn             (chfn finger          )
chgrp+   +              
chkconfig iptables off                 (   CentOS 6)
chmod           (r:   w:   x:  )(      )
chmod –reference=f1 f2 f3      f1  f2,f3   
chown+  +              、  、   
chpasswd         
chroot       (     )
chrt           
chsh –s        shell  
chvt        (       )
clear      (   Ctrl+l)
clock      
command alias                ( \alias   )
cp      (  -a –r –v -p)
    -i         
    -n       ,      
    -r,R                  
    -a      ,   -dR --preserv=all
    -d    --no-dereference --preserv=links        ,      
curl          (       )
cut            (cat    ,cut     )
    -d DELIMITER:      ,  tab
    -f FILEDS:
        #:  #   
        #,#[,#]:       ,  1,3,6
        #-#:       ,   1-6
            :1-3,7
    -c      
    --output-delimiter=STRING        
date             
dd                       ,                
df              (         )
diff                      
dirname               
du –sh /*                  
echo         (                )
    -e          
        \a         
        \b           
        \c             
        \f                  
        
\r , \t tab \ \
nn nnn( ) ASCII echo $shell shell enable -n + enable –n pwd pwd/ (pwd ) enable pwd pwd/ env ( printenv、export、declare -x ) export , ( ) fdisk ( MNR ) t file -b , -f filelist filelist -F “:” -L find , finger findmnt free fuser , -v gdisk ( GPT )( 128 ) w q gedit ( , ) getent passwd + getfcal ACL grep --color=auto: -m # # -v pattern -i -n -c -o -q , -A # after, # -B # before, # -C # context, # -e or grep –e ‘cat ’ -e ‘dog’ file -w -E ERE egrep -F fgrep, -f file groupadd -g GID GID -r groupmod -n (group_name) -g GID groupdel gpasswd -a user user -d user user -A user1,user2,... gpasswd mage mage ( , ) groupmems -g, --group groupname ( root) -a, --add username -d, --delete username -p, --purge -l, --list groups + grpck ( ) hash hash hash –l hash , hash –t name name hash –d name name hash –r head -c # # -n # # -# (-n ) help hexdump 16 、2 history -c: -d offset: offset n: n -a: -r: -w: -n: -p: , -s: , hostname id -u ID ifconfig ip a ( IP ) info (info windows 。 man, info) init0 init3 ( ) init5 ( ) init6 ldd less STDIN space,^v,^f,^F: b,^b: d,^d: u,^u: RETURN,^N,e,^E or j or ^j: y or ^Y or ^P or k or ^K: q: #: # 1G: G: ll (ll ‘ls –l –color=auto* , ll=‘ls –l –color=auto*) ln ln –s logout exit ( Ctrl+d ) losetup -a -d lpr ls /dev/sda* fdisk -1 ls -a -l -R -ld -1 –S –t mtime –u -t , atime –U –X lsattr lsb_release lsblk lsof ( ) ltrace library( ) lvcreate (-s ) mail mail makewhatis (CentOS 6) mandb (CentOS 7) man man make make install mkdir -p , -v -m MODE mknod ( ) modprobe mount -a more (more -d ) mv -i -f -b , -t --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY, mv , , , 。 rm :rm=mv -t /data rm /data 。 nano netstat newgrp ( , ) newusers ntpdate IP lnternet openssl rand –base64 N N ( 、 、 ) oracle partprobe (CentOS 7) patch –b paste -d : , TAB -s : passwd ( , ) -d: -l: -u: -e: -f: -n mindays: -x maxdays: -w warndays: -i inactivedays: --stdin: poweroff halt init 0 shutdown , , pwck ( ) pwconv , /etc/passwd pwd(printing working directory) / pwunconv , /etc/passwd pvmove ( ) read -p -t , readlink ( ) reboot rename rev (tac ) reset 、 remout rm ( rm -rf) -i -f -r rmdir -p -v rmmod ( ) route -n rpm –qa |wc -1 runlevel rz windows Linux scp (scp+ + ID/ ) screen screen screen –S [SESSION] screen screen –x [SESSION] screen exit screen Ctrl+a,d screen screen -ls screen screen -r [SESSION] screen seq service iptables stop ( CentOS 6) setfacl ( ) ACL setup shred ( 。 ) shutdown shutdown –c sosreport ( ) sort ( ) -r ( ) -R -n -f (fold) -u ( ,unique) -t c c -k X c X source ( . 。 ) startx ( , , ) stat strace system call( ) su systemctl disable firewalld (CentOS 7) systemctl stop firewalld (CentOS 7) sz Linux windows tar 。 、 tac , cat tail -c # # -n # # -# -f fd , --follow=descriptor -F , --follow=name --retry tar –cvf tar –xvf tee timedatect1 (CentOS 7 ) touch touch `date –d “-1 day” +%F`.log top tr tree -d -L level -P pattern pattern tty ( ) type tzselect (CentOS 6 ) umask umount unalias+ uname -r unset ( ) uniq -c: -d: -u: : uptime useradd -u UID ID -o -u , UID -g GID , , GID -c “COMMENT” -d HOME_DIR ( ) -s SHELL shell , /etc/shells -G , -N , users -r (CentOS6:ID<500,CentOS7:ID<1000) -m , -M , usermod -u UID: UID -g GID -G GROUP1[GROUP2,…[groupn]]: , ; , -a -s SHELL: SHELL -c 'COMMENT': -d HOME: ; , -m -l login_name: -L: lock , /etc/shadow ! -U: unlock , /etc/shadow ! -e YYYY-MM-DD: -f INACTIVE: userdel -r usleep vigr /etc/group( vi 。 nano ) vipw /etc/passwd vgchangge -a n vg0 w , who am i whoami wall / wc -l -w ![](https://s1.51cto.com/images/blog/201904/07/33f4d04dcdd2748f051b87ef451c8e13.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=) -c -m -L wget ( ) whatis ( man -f) whereis which who –r ( runlevel ) who who am I whoami xargs , -n , xargs -n 1 xz (unxz ) yum clean all yum yum group install yum group remove yum group list yum group remove ( , ) yum group info

좋은 웹페이지 즐겨찾기