２０１８年4月4日講座で使ったコマンドすべて

1  cal
    2  cal 2018
    3  pwd
    4  cd /etc
    5  pwd
    6  ce /
    7  cd /
    8  pwd
    9  cd /etc
   10  pwd
   11  cls
   12  ls
   13  ls -l
   14  cd ..
   15  pwd
   16  cd root
   17  pwd
   18  ls
   19  cd ..
   20  pwd
   21  cd root
   22  pwd
   23  ls
   24  cd /etc
   25  ls
   26  cd ..
   27  ls
   28  pwd
   29  ls -l
   30  cd boot
   31  ls
   32  cd..
   33  ls
   34  cd..
   35  cd ..
   36  ls
   37  ls -l
   38  cd var
   39  ls -s
   40  ls -l
   41  ls
   42  cd /home
   43  ls
   44  ls -l
   45  pwd
   46  ls -l
   47  mkdir test
   48  ls -l
   49  ls
   50  ls -l
   51  cd test
   52  mkdir subtest
   53  ls -s
   54  cd subtest
   55  ls
   56  cd..
   57  cd ..
   58  ls
   59  cd ..
   60  ls
   61  cd test
   62  cd subtest
   63  ls
   64  cd /
   65  ls
   66  cd home
   67  cd /
   68  cd hoem/test
   69  cd home/test/subteest
   70  cd home/test
   71  cd /
   72  cd home/test/subtest
   73  ls
   74  cal > cal.txt
   75  ls
   76  ls -l
   77  cal 2018 > cal2018.txt
   78  ls -l
   79  cat cal.txt
   80  cat cal2018.txt
   81  less cal2018.txt
   82  cp cal.txt cal2.txt
   83  ls -l
   84  cat cal2.txt
   85  move
   86  move cal.txt ..
   87  ls -s
   88  move cal2.txt ..
   89  mv cal2.txt ..
   90  ls
   91  cd ..
   92  ls
   93  ls -l
   94  mv cal2.txt subtest
   95  ls
   96  cd subtest
   97  ls
   98  cd home
   99  cd /home
  100  ls
  101  mkdir
  102  mkdir test2
  103  ls
  104  cd test2
  105  ls
  106  mkdir subtest2
  107  ls
  108  cd subtest2
  109  cal > cal3.txt
  110  ls
  111  cat cal3.txt
  112  ls
  113  cp cal3.txt cal4.txt
  114  ls
  115  cat cal4.txt
  116  ls
  117  cat cal3.txt
  118  ls
  119  cd /test
  120  cd /home
  121  cd /test/subtest
  122  cd test/subtest
  123  ls
  124  mv cal2018.txt /home/test2/subtst2
  125  ls
  126  cd /home
  127  cd test2/subtest2
  128  ls
  129  cd /home
  130  ls
  131  cd test
  132  ls
  133  cd subtest
  134  ls
  135  ls -l
  136  cd /home
  137  cd test2/subetst2
  138  cd test2/subtest2
  139  ls
  140  cd /home
  141  cd test/subtest
  142  ls
  143  cal 2018 cal2018.txt
  144  cal 2018 > cal2018.txt
  145  ls
  146  mv cal2018.txt /home/test2/subtest2
  147  cd /home
  148  cd test2/subtest2\
  149  ls
  150  mv /home/test/subtest/cal.txt /home/test2/subtest2
  151  ls
  152  mv /home/test2/subtest2/cal.txt /home/test/subtest
  153  ls
  154  remove cal4.txt cal5.txt
  155  ls
  156  mv cal4.txt cal5.txt
  157  ls
  158  cd /home/test
  159  cd subtest/
  160  cd /home/
  161  cd /home/test/subtest/
  162  touch mydiary.txt
  163  ls
  164  mv mydiary.txt /home/test2
  165  ls
  166  cd /home/test
  167  ls
  168  cd /home/test2
  169  ls
  170  cd subtest2
  171  ls
  172  mv cal2018.txt /home/test
  173  mv home/test/subtest/mydiary.txt /home/test2
  174  mv home/test/subtest/mydiary.txt /home/test
  175  cd /home/test/subtest
  176  ls
  177  cd /home/test2
  178  ls
  179  cd /home/test/subtest
  180  mv ../cal2018.txt .
  181  ls
  182  cd /home/test2/subtest2
  183  ls -l
  184  rm cal3.txt
  185  cd..
  186  cd ..
  187  rm -r subtest2
  188  useradd kho
  189  cat /etc/shadow
  190  passwd kho
  191  su kho
  192  useradd okuno
  193  passwd okuno
  194  useradd kho nam lee
  195  useradd kho, nam
  196  useradd nam -p himitu4649
  197  su nam
  198  useradd lee -o himitu4649
  199  useradd lee -p himitu4649
  200  useradd mizukoshi -p himitu4649
  201  cat /etc/passwd
  202  cat /etc/s
  203  cd /home/okuno
  204  ls
  205  cal 1980 > calMyBirth.txt
  206  cat calMyBirth.txt
  207  cd..
  208  cp calMyBirth.txt ../kho
  209  cp calMyBirth.txt ../lee
  210  cp calMyBirth.txt ../nam
  211  cp calMyBirth.txt ../mizukoshi
  212  cd /home/kho
  213  ls
  214  history
  215  cat
  216  ifconfig
  217  153.126.191.255153.126.191
  218  s
  219  ss lee@153.126.171.255
  220  ssh lee@153.126.171.255
  221  cd ..
  222  cd lee
  223  ssh mizukoshi@153.126.139.255
  224  uname
  225  export
  226  echo $PWD
  227  cd /home/kho
  228  cd 2020 > cal2020.txt
  229  cal 2020 > cal2020.txt
  230  ls -l
  231  chmod 0 -r cal2020.txt
  232  chmod o -r cal202.txt
  233  chmod o-r cal2020.txt
  234  ls -l
  235  chmod g+w cal2020.txt
  236  ls -l
  237  su kho
  238  chmod o+r cal2020.txt
  239  ls -l
  240  su kho
  241  touch myFile.txt
  242  ls
  243  chmod 740 myFile.txt
  244  ls
  245  ls -l
  246  chmod 744 myFile.txt
  247  ls -l
  248  cd/user/bin
  249  cd
  250  cd /
  251  cd /usr/bin
  252  ls -l
  253  ls -l|grep pwd
  254  mkdir -p test2/subtest2
  255  cd
  256  dir
  257  cd /
  258  cd /home/subtest2
  259  cd /home
  260  /test2
  261  cd /test2
  262  cd test2
  263  cd subtest2
  264  ls
  265  mkdir -p subtest2
  266  cd subtest2
  267  ls
  268  cal > cal6.txt
  269  cal > cal7.txt
  270  cal > cal8.txt
  271  touch sample.txt
  272  cp cal6.txt ../test/subtest
  273  cp cal6.txt /home/test/subtest
  274  cp cal7.txt /home/test/subtest
  275  cp sample.txt /home/test/subtest
  276  cd /home/test/subtest
  277  ls -l
  278  mv cal6.txt ll
  279  ls -l
  280  mv ll cal6.txt
  281  ls -l
  282  mv cal6.txt ..
  283  rm cal7.txt
  284  ls -l
  285  cd ..
  286  ls
  287  clear
  288  ls
  289  cp /etc/sysctl.conf .
  290  ls
  291  mv sysctl.conf /subtest
  292  ls
  293  cd subtest
  294  ls
  295  cd ..
  296  ls
  297  cd subtest
  298  ls
  299  cp /etc/sysctl.conf
  300  cd ..
  301  cp /etc/sysctl.conf
  302  cd subtest
  303  cp /etc/sysctl.conf .
  304  ls
  305  cat sysctl.conf
  306  wc -l sysctl.conf
  307  ls -l
  308  rm sysctl.conf
  309  ls
  310  cd ..
  311  ls
  312  date cal6.txt
  313  date > cal6.txt
  314  ls
  315  date > cal6.txt
  316  cat cal6.txt
  317  cd subtest
  318  ls
  319  clear
  320  ls
  321  vi sample.txt
  322  ls
  323  cat sample.txt
  324  wc -l sample.txt
  325  vi sample.txt
  326  cat sample.txt
  327  ls
  328  wc -l sample.txt
  329  vi sample.txt
  330  ca /etc/sysctr.conf .
  331  cp /etc/sysctr.conf .
  332  cp /etc/sysctrl.conf .
  333  cp /etcsysctl.conf .
  334  cp/etc/sysctl.conf .
  335  cp /tec/sysctl.conf .
  336  cp /etc/sysctl.conf .
  337  clear
  338  cat sysctl.conf
  339  vi sysctl.conf
  340  wc -l sysctl.conf
  341  /net
  342  vi sysctl.conf
  343  ls -l
  344  su kho
  345  chmod 444 sysctl.confg
  346  chmod 444 sysctl.con
  347  chmod 444 sysctl.conf
  348  ls
  349  ls -l
  350  vi sysctl.conf
  351  cat sysctl.conf
  352  cd ..
  353  cd /home
  354  ls
  355  userdel okuno
  356  ls
  357  ls /etc/passwd
  358  cat /etc/passwd
  359  groupadd tennis
  360  wc -cat /etc/group
  361  cat /etc/group
  362  wd -l tennis
  363  wc -l tennis
  364  clear
  365  wc /etc/group
  366  wc -l /etc/group
  367  usermod -G tenis okuno
  368  usermod -G tennis okuno
  369  userdel okuno
  370  ls -l
  371  ls -l /home
  372  usermod -G tennis okuno
  373  usermod -G tennis kho
  374  usermod -G tesnis nam
  375  usermod -G tennis nam
  376  usermod -G tennis mizukoshi
  377  usermod -G tennis lee
  378  if okuno
  379  id okuno
  380  id nam
  381  id muzukoshi
  382  id mizukoshi
  383  groupadd soccer
  384  cat /etc/group
  385  usermod -G soccer kho
  386  cat /etc/group
  387  userdel
  388  clear
  389  cd /
  390  cd home
  391  ls
  392  clear
  393  mkdir newDir1
  394  ls -l
  395  cd newDir1
  396  ls -l
  397  mkdir subNewDir1
  398  ls -l
  399  cd..
  400  cd ..
  401  mkdir -p newDir2/subNewDir2
  402  ls -l
  403  cd newDir1
  404  cal > cal1.txt
  405  ls -l
  406  cat cal1.txt
  407  ls -l
  408  cp ca1.tex cal2.txt
  409  cp cal1.txt cal2.txt
  410  cat cal2.txt
  411  mv ca1.txt /subNewDir1
  412  ls
  413  mv cal1.txt /subNewDir1
  414  cd subNewDir1
  415  ls -l
  416  cd ..
  417  ls
  418  cd subNewDir1
  419  ls
  420  cd ..
  421  ls
  422  cp cal2.txt cal1.txt
  423  mv cal2.txt subNewDir1
  424  cd subNeWDir1
  425  cd subNewDir1
  426  ls
  427  history
  428  mkdir Kho
  429   cd kho
  430  cd /kho
  431  ls
  432  cd Kho
  433  [root@ik1-331-2593
  434  cal > khocal.txt
  435  ls -l
  436  mkdir -p subKho/subKho2
  437  cd subKho
  438  cp ../khocal.txt .
  439  cp ../khocal.txt ./subKho2
  440  ls -l
  441  cd subKho2
  442  ls -l
  443  mv khocal.txt khotest.txt
  444  mv khotest.txt ../subKho
  445  ls -l
  446  cd ..
  447  ls -l
  448  cd khocal.txt ./subKho2
  449  cp khocal.txt ./subKho2
  450  cd subKho2
  451  ls
  452  mv khoca.txt khotest.txt
  453  mv khocal.txt khotest.txt
  454  ls -l
  455  mv khotest.txt ..
  456  cd subKho
  457  cd ..
  458  ls -l
  459  [root@ik1-331-25935 subKho2
  460  cat khotest.txt
  461  cd /home
  462  ls
  463  mkdir /test/monday
  464  mkdir test/monday
  465  cd monday
  466  cd test
  467  cd monday
  468  ls
  469  cp /etc/tcsd.conf .
  470  ls
  471  mv tcsd.conf tcsd.conf.backup
  472  ls
  473  vi tcsd.conf.backup
  474  less tcsd.conf.backup
  475  ls
  476  chmod 744 tcsd.conf.backup
  477  ls
  478  ls -l
  479  chmod 444 tcsd.conf.backup
  480  ls
  481  ls -l
  482  wc -l tcsd.conf.backup
  483  wc tcsd.conf.backup
  484  wc
  485  wc -help
  486  wc -h
  487  wc --h
  488  user
  489  cat /etc/passwd
  490  ls
  491  cat -n tcsd.conf.backup
  492  ls
  493  chmod a -w tcsd.conf.backup
  494  chmod
  495  cdmod -a -w tcsd.conf.backup
  496  chmod -a -2 tcsd.conf.backup
  497  chmod -a -w tcsd.conf.backup
  498  chmod a-w tcsd.conf.backup
  499  ls
  500  ls -s
  501  ls-l
  502  ls -l
  503  chmod a+w tcsd.conf.backup
  504  ls
  505  ls -l
  506  pwd
  507  nl tcsd.conf.backup
  508  cat -n tcsd.conf.backup
  509  cat etc/shadow
  510  su kho
  511  ls
  512  cd /home
  513  ls
  514  mkdir -p newDir3/subNewDir3
  515  cd newDir3/subNewDir3/
  516  cp /etc/fstab .
  517  ls
  518  mv fstab fstab.backup
  519  useradd jhon
  520  ls
  521  vi fstab.backup
  522  chmod 444 fstab.backup
  523  su jhon
  524  whoami
  525  pwd
  526  less /etc/fatab
  527  less /etc/fstab
  528  less /etc/fstab
  529  top
  530  ps
  531  yum install psmisc
  532  yum install psmisc -y
  533  pstree
  534  pstree -p
  535  top
  536  ls -l /sbin/init
  537  clear
  538  ls -l /sbin/init
  539  ps -l
  540  nice
  541  renice
  542  nice
  543  less /etc/passwd l
  544  less /etc/passwd &
  545  jobs
  546  fg 1
  547  jobs
  548  less /etc/passwd &
  549  job
  550  fg 1
  551  less /etc/fstab &
  552  cat /etc/passwd &
  553  less /var/log/message &
  554  job
  555  cat /etc passwd &
  556  cat /etc/passwd &
  557  job
  558  jobs
  559  cat /etc/passwd &
  560  jobs
  561  cat /etc/passwd &
  562  jobs
  563  less /etc/passwd &
  564  jobs
  565  fg 1
  566  fg 2
  567  fg 3
  568  jobs
  569  ls
  570  less /etc/fstab
  571  less/etc/fstab %
  572  less /etc/fstab &
  573  less /etc/passwd &
  574  less var/log/messages &
  575  job s
  576  jobs
  577  fg 1
  578  fg 2
  579  fg 3
  580  nohup less /etc/passwd &
  581  jobs
  582  nohup less /etc/passwd &
  583  jobs
  584  find /
  585  less /var/log/messages &
  586  jobs
  587  kill -9 %1
  588  jobs
  589  kill -l
  590  cd /home
  591  ls
  592  mkdir -p school/student/notebook/yamada
  593  mkdir school/student/notebook/suzuki
  594  mkdir school/student/notebook//takahashi
  595  mkdir -p teacher/textbook
  596  mkdir teacher/scorebook
  597  useradd yamada
  598  useradd suzuki
  599  useradd takahashi
  600  cd school
  601  ls
  602  mkdir -p teacher/textbook
  603  mkdir teacher/scorebook
  604  ls
  605  cp /etc/fstab ./teacher/textbook
  606  cd teacher/textbook
  607  ls
  608  vi fstab
  609  ls
  610  pstree
  611  touth pstree.txt
  612  touch pstree.txt
  613  vi pstree.txt
  614  cat pstree.txt
  615  chmod 444 pstree.txt
  616  ls -l
  617  cp pstree.txt /home/school/student/notebook/yamada
  618  cp pstree.txt /home/school/student/notebook/suzuki
  619  cp pstree.txt /home/school/student/notebook/takahashi/
  620  cd /home/school/student/notebook/yamada
  621  ls
  622  mv pstree.txt pstree.txt.yamada
  623  cd ..
  624  cd suzuki
  625  ls
  626  mv pstree.txt pstree.txt.suzuki
  627  ls
  628  cd ..
  629  ls
  630  cd takahashi
  631  ls
  632  mv pstree.txt pstree.txt.takahashi
  633  ls
  634  cp pstree.txt.takahashi psttest.txt
  635  ls
  636  cat pstree.txt.takahashi
  637  ls -l
  638  ls
  639  cp pstest.txt /home/school/cptest.txt
  640  cp pstest.txt /home/school/
  641  ls
  642  mv psttest.txt pstest.txt
  643  ls
  644  cp pstest.txt /home/school/cptest.txt
  645  cd /home
  646  cd school
  647  ls
  648  cd ..
  649  ls
  650  cd school
  651  cal ; date
  652  cal > cal2.txt
  653  cat cal2.txt
  654  date >> cal2.txt
  655  cat cal2.txt
  656  cal >> cal2.txt
  657  cat cal2.txt
  658  pstree > test.txt
  659  ls
  660  cat text.txt
  661  cat test.txt
  662  ls
  663  pstree > vesult.txt >> cal
  664  cat vesult.txt
  665  pstree > cal >> ve.txt
  666  cat ve.txt
  667  ls
  668  pstree >> vesult.txt >> cal
  669  cat vesult.txt
  670  pstree >> call >> v
  671  cat v
  672  pstree >> cal >> a
  673  cat a
  674  a >> pstree >> cal
  675  pstree > a ; cal >> a
  676  cat a
  677  cat "hello"
  678  cat 'hello'
  679  echo 'hello'
  680  cp /etc/passwd document.txt ; cp document.txt >> /etc/fstab
  681  echo /etc/passwd > document.txt
  682  cat document.txt
  683  cd teacher
  684  ls
  685  cp /etc/passwd > a
  686  cp /etc/passwd a
  687  cat a
  688  echo /etc/passwd
  689  echo '/etc/passwd'
  690  echo 'kho'
  691  ls
  692  cat /etc/passwd
  693  cat /etc/passwd > sap
  694  cat sap
  695  cat /etc/passwd > document.txt ; cat /etc/fstab >> document.txt ; echo 'kho' >> document.txt
  696  cat document.txt
  697  cat /etc/passwd ; cat /etc/fstab ; echo kho > test
  698  ls
  699  cat test
  700  tail -3 /etc/passwd
  701  id kho
  702  date
  703  useradd bob > user.txt; tail -1 /etc/passwd >> user.txt ; id bob >> user.txt ; date >> user.txt
  704  cat user.txt
  705  useradd bob > user.txt; tail -1 /etc/passwd >> user.txt ; id bob >> user.txt ; date >> user.txt
  706  ls
  707  cd ..
  708  mkdir -p 20180404/1/2/3/4/5
  709  cd 20180404
  710  mkdir 1-2
  711  mkdir 1-3
  712  mkdir 1-4
  713  mkdir 1-5
  714  cal > 2018cal.txt
  715  cp 2018cal.txt 1-2; cp 2018cal.txt 1-3; cp 2018cal.txt 1-4 ; cp 2018cal.txt 1-5; cp 2018cal.txt 1
  716  ls -l
  717  mv 1/2018cal.txt 1/2018.txt.1
  718  cd 2
  719  cd 1
  720  ls
  721  ls -l
  722  [root@ik1-331-25935 20180404]# cd 1[root@ik1-331-25935 20180404]# cd 1
  723  ls
  724  cp 2018.txt.1 ../20180404.txt
  725  cd ..
  726  ls -l
  727  pstree > pstree.txt
  728  date >> pstree.txt
  729  tail -1 pstree > tailtest.txt
  730  tail -1 pstree
  731  cd ..
  732  mkdir -p test3/mytest
  733  cd test3/mytest
  734  ls
  735  cal > cal1.txt ; cal > cal2.txt ; cal > cal3.txt ; cal >cal4.txt
  736  ls ls
  737  ls -l
  738  madir oldfile
  739  mkdir oldfile
  740  mv *.txt oldfile
  741  ls
  742  cd oldfile
  743  ls
  744  chmod 444 *.txt
  745  ls -l