linux系统命令练习

    1  ipconfig
    2  ip addr show 
    3  dddadasdasdasd
    4  ifconfig
    5  ls
    6  mkdir test
    7  ls
    8  cd t
    9  cd test/
   10  touch {1..5}.txt
   11  ls
   12  ll
   13  chmod 777 -r ./*
   14  chmod -r 777 ./*
   15  chmod 777 -R ./*
   16  ll
   17  chmod 644 -R ./*
   18  cd ..
   19  ls
   20  l
   21  ll
   22  cd test/
   23  ll -a
   24  ll
   25  cd ..
   26  ll
   27  lsl
   28  ls
   29  cd t
   30  cd test/
   31  ls
   32  vim 1.txt 
   33  add
   34  s
   35  ls
   36  cd test/
   37  vim 1.txt 
   38  ls
   39  vim 1.txt 
   40  ip addr show
   41  ls
   42  q
   43  dcsdczcsddcdcsdcscss
   44  ls
   45  gcc 01.c 
   46  cp aliyun.repo /etc/yum
   47  sudo
   48  su root
   49  cd
   50  ls
   51  su root
   52  ls
   53  su root
   54  ls
   55  cp 123
   56  ls
   57  rpm -ivh telnet-0.17-85.el9.x86_64.rpm 
   58  su root
   59  ls
   60  ipconfig
   61  ipconfiger
   62  ipconfig
   63  ipconfigif 
   64  ifconfig
   65  telnet 192.168.12.129 22
   66  yum clean all 
   67  su root
   68  ls
   69  cd ..
   70  ls
   71  cd ..
   72  ls
   73  pedd
   74  pwd
   75  cd bin/
   76  ls
   77  ll
   78  vim zipinfo 
   79  fg
   80  vim zipinfo 
   81  fg
   82  cd
   83  ls
   84  cd ../..
   85  ls
   86  cd
   87  cp .vimrc
   88  vim .vimrc
   89  ll
   90  ls -a
   91  vim 1223
   92  ls
   93  vim 01.c
   94  vim 01.cpp
   95  ls
   96  vim 01.c
   97  fg
   98  history 
   99  fg
  100  ls
  101  gcc 01.c 
  102  ls
  103  vim 01.c 
  104  history 
  105  ls
  106  ./a.out 
  107  rm aliyun.repo 
  108  ls
  109  vim 01.c 
  110  history 
  111  cd
  112  ls
  113  nano 01.c 
  114  nano
  115  file 01.c 
  116  where home
  117  cd /
  118  ls
  119  whereis home
  120  where home/
  121  where bin/
  122  whereis 01.c
  123  whereis file 01.c
  124  whereis file 
  125  whereis 01
  126  where 01.c
  127  which gcc
  128  which 01.c
  129  cd 
  130  which bin
  131  whereis gcc
  132  ls
  133  cd test/
  134  ls
  135  rm ./
  136  rm *
  137  ls
  138  touch test{01..15}
  139  ls
  140  echo sadfsa
  141  echo daf fae
  142  echo "fsf fksf"
  143  echo "fsf fksf"fsf
  144  h=hello
  145  echo h
  146  echo $h
  147  echo $hda
  148  echo ${h} adada
  149  echo ada$h dad
  150  echo ada$h-dad
  151  for aa in test; do echo $aa; done 
  152  for aa in test??; do echo $aa; done 
  153  ls
  154  mv test01 122
  155  ls
  156  ls
  157  for aa in test??; do  echo "mv $aa test"; done 
  158  for aa in test??; do  echo "mv $aa week"; done 
  159  for aa in test??; do mv $aa week; done 
  160  ls
  161  ll
  162  rm *
  163  touch test{01..15}
  164  ls
  165  a=ls
  166  $a
  167  ls
  168  mv test?? abc{01..15}
  169  aa=test??
  170  echo ${aa#test}
  171  ls
  172  cd
  173  ls
  174  s
  175  ls
  176  nano 01.c 
  177  echo adjdaka
  178  a=ls
  179  $a
  180  echo $a
  181  echo adadj$a aakddka
  182  echo adadj$aaakddka
  183  echo adadj${a}12aakddka
  184  cd test/
  185  ls
  186  for aa in test??; do echo "mv $aa abc${$aa#test}"; done 
  187  for aa in test??; do echo "mv $aa abc${aa#test}"; done 
  188  ls
  189  for aa in t??; do mv $aa abc${aa#test}; done 
  190  ls
  191  cd /etc/yum.repos.d/
  192  mount /dev/sr0 /mnt/
  193  ls
  194  systemctl stutas firewalld
  195  systemctl stop firewalld
  196  ifconfig 
  197  gentenforce
  198  getenforce
  199  setenforce 0
  200  getenforce
  201  su root
  202  ls
  203  ifconfig 
  204  getenforce 
  205  setenforce 
  206  setenforce 0
  207  getenforce 
  208  su root
  209  history 
  210  systemctl status httpd
  211  systemctl stop httpd
  212  systemctl status httpd
  213  systemctl stop httpd
  214  systemctl status httpd
  215  su root 
  216  ifconfig 
  217  ls
  218  uname-a
  219  uname -a
  220  cat /etc/redhat-release 
  221  ce
  222  cd
  223  pwd
  224  cd /
  225  ls
  226  ll
  227  ll -a
  228  ls -a
  229  cd
  230  ls
  231  mkdir a
  232  ls
  233  rmdir a
  234  ls
  235  mv test abc
  236  ls
  237  mv abc test
  238  mkdir   Dir1 
  239  cd Dir1/
  240  mkdir   -m     700    Dir2 
  241  ll
  242  mkdir   -p     Dir1/Dir2/Dir3/Dir4/Dir5
  243  ls
  244  ls Dir2
  245  ls Dir1
  246  cd Dir1
  247  cd Dir2/
  248  cd Dir3/
  249  cd Dir4/
  250  cd Dir5/
  251  ls
  252  pwd
  253  cd
  254  ls -l
  255  ls -s
  256  ls -sl
  257  cd test/
  258  ;ls
  259  ls
  260  touch a
  261  ls
  262  vim b
  263  s
  264  ls
  265  touch ab{0..5}
  266  ls
  267  rm ab*
  268  ls
  269  rm a
  270  ls
  271  touch test{0..5
  272  ls
  273  touch test{0..5}
  274  ls
  275  rm test\{0..5 
  276  ls
  277  chmod 777 test0
  278  ll
  279  cp test0 abc
  280  ls
  281  ln s
  282  ln abc def
  283  def
  284  vim def 
  285  tar  -cvf  abc
  286  ls
  287  tar abc
  288  cd ..
  289  ls
  290  tar  -cvf  test/
  291  ls
  292  tar  -cvf test.tar test/
  293  ls
  294  rm test
  295  rm -f test
  296  rm -rf test
  297  ls
  298  tar -xvf test.tar 
  299  ls
  300  zip -r test.zip test
  301  ls
  302  unzip test.zip 
  303  ls
  304  rpm    -ivh       telnet-0.17-85.el9.x86_64.rpm 
  305  rpm  -qa      
  306  rpm  -qa | grep ssh     
  307  rpm  -qa --last |  head  -20  
  308  rpm    -ql    telnet        
  309  rpm    -qi    telnet       
  310  history > mylog.txt
  311  ls
  312  rm test*
  313  rm -rf test*
  314  ls
  315  rm -rf Dir1/
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值