当前位置:   article > 正文

linux命令历史

linux命令历史

20220517

菜鸟练习

   35  ls
   36  cd ..
   37  ls
   38  cd fate
   39  ls
   40  cd python
   41  ks
   42  ls
   43  python ./fate_arch/federation/transfer_variable/scripts/generate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   44  pip3 install dataclasses
   45  python ./fate_arch/federation/transfer_variable/scripts/generate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   46  pip3 install torch.optim.swa_utils
   47  torch --version
   48  python torch --version
   49  python
   50  pip3 install torch
   51  python
   52  ls
   53  cd fate_arch
   54  ls
   55  cd federation
   56  ls
   57  cd transfer_variable/
   58  cd scripts
   59  ls
   60  python generate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   61  python generate_auth_conf.py federatedml /fate-root/fate/python/federatedml/transfer_variable/auth_conf
   62  python generate_auth_conf.py /fate-root/fate/python/federatedml/transfer_variable/transfer_class/ /fate-root/fate/python/federatedml/transfer_variable/auth_conf
   63  python generate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   64  cd ..
   65  python /fate-rrotgenerate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   66  cd -
   67  ls
   68  cd federation/
   69  ls
   70  cd transfer_variable/
   71  ls
   72  cd scripts
   73  ls
   74  python generate_auth_conf.py federatedml federatedml/transfer_variable/auth_conf
   75  cd ..
   76  ls
   77  cd ..
   78  ls
   79  cd ..
   80  ls
   81  cd python
   82  ls
   83  cd federatedml/
   84  ls
   85  cd protobuf/
   86  ls
   87  bash proto_generate.sh
   88  cd ..
   89  ls
   90  cd examples/
   91  ls
   92  cd dsl
   93  ls
   94  cd v1
   95  ls
   96  cd homo_logistic_regression/
   97  ls
   98  flow data upload -c upload_data_host.json
   99  cd /
  100  flow data upload -c upload_data_host.json
  101  ls
  102  cd fate-root/
  103  cd fate
  104  flow data upload -c upload_data_host.json
  105  cd dsl
  106  ls
  107  cd examples
  108  ls
  109  cd dsl
  110  cd v1
  111  ls
  112  cd homo_logistic_regression/
  113  ls
  114  flow data upload -c 丿;
  115  flow data upload -c upload_data_guest.json
  116  cd ..
  117  flow data upload -c upload_data_guest.json
  118  cd ..
  119  flow data upload -c upload_data_guest.json
  120  cd ..
  121  flow data upload -c upload_data_guest.json
  122  cd ..
  123  flow data upload -c upload_data_guest.json
  124  flow data upload -h
  125  flow data upload -c fate-root/fate/examples/dsl/v1/ upload_data_guest.json
  126  flow data upload -c fate-root/fate/examples/dsl/v1/upload_data_guest.json
  127  flow data upload -c fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_guest.json
  128  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_guest.json
  129  flow data upload -h
  130  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_guest.json --drop
  131  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_host.json --drop
  132  cd ..
  133  ls
  134  cd fate
  135  ls
  136  cd examples
  137  ls
  138  cd dsk
  139  cd dsl
  140  cd v1
  141  cd homo_logistic_regression/
  142  ls
  143  vim upload_data_guest.json
  144  vim upload_data_host.json
  145  flow data upload -c ./upload_data_guest_test.json
  146  ls
  147  cp upload_data_guest.json upload_data_guest_test.json
  148  cp upload_data_host.json upload_data_host_test.json
  149  flow data upload -c ./upload_data_guest_test.json
  150  pwd
  151  /fate-root/fate/examples/dsl/v1/homo_logistic_regression
  152  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_guest_test.json
  153  cd /fate-root/fate
  154  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_guest_test.json
  155  flow data upload -c /fate-root/fate/examples/dsl/v1/homo_logistic_regression/upload_data_host_test.json
  156  ls
  157  cd examples
  158  ls
  159  cd dsl
  160  ls
  161  cd v`
  162  1
  163  q
  164  quit
  165  exit
  166  l
  167  ls
  168  ls
  169  ;
  170  quit
  171  cd v`
  172  1
  173  q
  174  quit
  175  exit
  176  ls
  177  cd /
  178  ls
  179  cd fate-root/
  180  cd fate
  181  ls
  182  cd python
  183  cd ..
  184  cd venv
  185  ls
  186  cd bin
  187  ls
  188  bash activate
  189  source activate
  190   python /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  191   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  192  cd ..
  193   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  194  cd ..
  195   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  196  cd fate-root/
  197  cd fate
  198  cd python
  199   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  200   python3 ./fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  201   python ./fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  202  ls
  203  cd ..
  204  ls
  205  touch __init__.py
  206  cd python
  207  ls
  208  cd ..
  209  cd fate
  210  ls
  211  cd venv
  212  ls
  213  cd bin
  214  ls
  215  vim python.pt
  216   python ./fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  217   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  218  cd ..
  219  ls
  220  cd venv
  221  ls
  222  cd ..
  223  cd lib
  224  cd venv
  225  ls
  226  cd lib
  227  lcd
  228  ls
  229  cd python3.6
  230  ls
  231  cd site-packages/
  232  ls
  233  vim python.pth
  234   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  235  cd ..
  236  cd site-packages/
  237  vim python.pth
  238  cd ..
  239  cd .
  240  cd ..
  241  cd python
  242  ls
  243  cd fate_arch/
  244  ls
  245   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  246  cd /
  247  ls
  248  cd fate-root/
  249  ls
  250  cd fate
  251  ls
  252  cd miniconda/
  253  ls
  254  cd envs
  255  ls
  256  cd ..
  257  cd lib
  258  ls
  259  cd python3.6/
  260  ls
  261  cd site-packages/
  262  ls
  263  touch python.th
  264  vim python.th
  265   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  266  vim python.th 
  267  mv python.th python.pth
  268   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  269  import sys
  270   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  271   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn reader_0 -o ./predict_result
  272  ls
  273  rm -rf ./predict_result
  274  ls
  275  cd ..
  276  cd .
  277  cd ..
  278  ls
  279  cd ..
  280  ls
  281   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn reader_0 -o ./predict_result
  282  cd predict_result/
  283  ls
  284  cd job_202109231339006295210_reader_0_guest_10000_output_data/
  285  ls
  286  vim data.csv
  287  cd ..
  288   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn hetero_kmeans_0 -o ./predict_result
  289  ls
  290  cd predict_result/
  291  ls
  292  cd job_202109231339006295210_hetero_kmeans_0_guest_10000_output_data/
  293  ls
  294   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r host -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  295  cd ..
  296  ls
  297  cd ..
  298  cd predict_result/
  299  rm -rf ./*
  300  cd ..
  301  ls
  302  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  303  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  304  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  305  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  306  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  307  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  308  history
  309   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r host -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  310   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231646096870930  -p 10000 -r guest -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  311  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  312  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  313   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231658249779940  -p 10000 -r guest -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  314  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  315  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  316   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231716045512550  -p 10000 -r guest -cpn evaluation_0 -o /fate-root/fate/predict_result
  317   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231716045512550  -p 10000 -r guest -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  318   python3 /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231722375604300  -p 10000 -r guest -cpn hetero_kmeans_0 -o /fate-root/fate/predict_result
  319  pycharm
  320  ls
  321  cd /
  322  ls
  323  cd fate-root/
  324  ls
  325  cd fate
  326  ls
  327  cd examples
  328  ls
  329  cd data
  330  ls
  331  pwd
  332  ls
  333  cd ..
  334  LS
  335  ls
  336  cd ..
  337  ls
  338  cd data
  339  ls
  340  rm -rf ./*
  341  LS
  342  ls
  343  cd .。
  344  cd 。。
  345  cd
  346  ls
  347  cd /
  348  ls
  349  cd fate-root/
  350  ls
  351  cd fate
  352  ls
  353  cd data
  354  ks
  355  ls
  356  rm -rf ./*
  357  cd /fate-root/fate
  358  ls
  359  cd venv
  360  ls
  361  cd bin
  362  ls
  363  source activate
  364  cd ..
  365  ls
  366  cd examples
  367  ls
  368  cd dsl
  369  cd 
  370  ls
  371  cd /fate-root/
  372  cd fate
  373  ls
  374  cd examples
  375  ls
  376  cd dsl
  377  ls
  378  cd v1
  379  ls
  380  cd homo_logistic_regression/
  381  ls
  382  flow job submit -d homolr_train_test_job_dsl.json -c homolr_train_test_job_conf.json
  383  cd ..
  384  LS
  385  cd ..
  386  LS
  387  ls
  388  cd 。。
  389  cd ..
  390  LS
  391  ls
  392  cd python
  393  ls
  394  cd federatedml/
  395  ls
  396  cd conf
  397  ls
  398  cd setting_conf/
  399  ls
  400  rm -rf HomoLR.json
  401  ls
  402  cd ..
  403  LS
  404  ls
  405  cd /
  406  ls
  407  cd fate-foot
  408  ls
  409  cd fate-root/
  410  ls
  411  cd fate
  412  ls
  413  cd fate-flow
  414  cd venv
  415  ls
  416  cd ..
  417  LS
  418  ls
  419  cd python
  420  lsl
  421  ls
  422  cd fate_flow
  423  ls
  424  cd ..
  425  LS
  426  ls
  427  cd ..
  428  LS
  429  ls
  430  cd examples
  431  ls
  432  cd dsl
  433  cd v1
  434  ls
  435  cd hetero_kmeans
  436  ls
  437  python /fate-root/fate/python/fate_flow/fate_flow_client.py -f submit_job -c ./test_hetero_kmeans_job_conf.json -d ./test_hetero_kmeans_job_dsl.json
  438  cd ..
  439  ls
  440  cd ..
  441  ls
  442  cd ..
  443  ls
  444  cd ..
  445  ls
  446  cd python
  447  ls
  448  cd fate_flow
  449  ls
  450  vim fate_flow_server.py
  451  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json
  452  cd ..
  453  cd 
  454  cd /fate-root/
  455  ls
  456  cd fate
  457  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json
  458  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json
  459  cd .
  460  cd ..
  461  ls
  462  cd fate
  463  ls
  464  cd data
  465  ls
  466  rm -rf ./*
  467  cd ..
  468  ls
  469  cd logs
  470  ls
  471  rm -rf ./*
  472  cd ..
  473  ls
  474  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json
  475  flow data upload -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json -drop
  476  flow data upload -drop  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json 
  477  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json -drop
  478  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  479  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  480  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  481  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  482  cd jobs
  483  ls
  484  rm -rf ./*
  485  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  486  cd ..
  487  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  488  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  489  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  490  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_host.json --drop
  491  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_guest.json --drop
  492  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_host.json --drop
  493  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_guest.json --drop
  494  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_host.json --drop
  495  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  496  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  497  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  498  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  499  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  500  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  501  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_host.json --drop
  502  flow data upload  -c /fate-root/fate/examples/dsl/v1/upload_data_km_guest.json --drop
  503  ls
  504  mkdir predict_result
  505  python /fate-root/fate/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn reader_0 -o ./predict_result
  506  python /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn reader_0 -o ./predict_result
  507  python /fate-root/fate/python/fate_flow/fate_flow_client.py -f component_output_data -j 202109231339006295210 -p 10000 -r guest -cpn evaluation_0 -o ./predict_result
  508  whereis virtualenvwrapper
  509  man find
  510  locate --help
  511  find -h
  512  find --help
  513  find / -name *virtualenv*
  514  find / -name *virtualenvwrapper
  515  find / -name *virtualenvwrapper.sh
  516  find / -name virtualenvwrapper.sh
  517  which virtualenvwrapper.sh
  518  find / -name virtualenvwrapper.sh
  519  find / -name virtualenvwrapper*
  520  find / -name *virtualenvwrapper*
  521  history
  522  cd examples/dsl/v1
  523  vim upload_data_km_guest.json
  524  vim upload_data_km_host.json
  525  vim upload_data_km_guest.json
  526  shutdown -h now
  527  ls
  528  cd /
  529  ls
  530  cd fate-root/
  531  ls
  532    mkdir fate-rec
  533  cd fate-rec
  534  ls
  535  shutdown -h now
  536  ls
  537  cd /
  538  ls
  539  cd fate-root/
  540  ls
  541  cd fate-rec
  542  ls
  543  rm -rf ./fate-rec
  544  ls
  545  cd 
  546  ls
  547  cd /
  548  ls
  549  cd fate-root/
  550  ls
  551  cd fate-rec
  552  ls
  553  cd ..
  554  LS
  555  ls
  556  rm -rf ./fate-rec
  557  ls
  558  cd fate
  559  ls
  560  bash init.sh init
  561  ls
  562  cd venv
  563  ls
  564  cd bin
  565  ls
  566  bash activate
  567  source activate
  568  systemctl stop firewalld.service
  569  shutdown -h now
  570  ls
  571  cd572  cd573  cd  /
  574  LS
  575  s
  576  ls
  577  cd fate-root/
  578  ls
  579  \cd fate
  580  ls
  581  source init.sh init
  582  ls
  583  cd venv
  584  ls
  585  cd bin
  586  ls
  587  bash activate
  588  source activate
  589  cd ..
  590  ls
  591  cd fate
  592  ls
  593  source inint.sh init
  594  source init.sh init
  595  deactivate
  596  source init.sh init
  597  cd fate-foot
  598  ls
  599  cd /
  600  cd fate-root/
  601  cd fate
  602  ls
  603  source init.sh init
  604  cd 
  605  ls
  606  cd /
  607  cd fate-root/
  608  cd fate
  609  source init.sh init
  610  cd /
  611  cd fate-root/
  612  ls
  613  cd fate
  614  ls
  615  bash init.sh init
  616  cp  init.sh init init.sh.bak
  617  cp  init.sh init.sh.bak
  618  vim init.sh
  619  bash init.sh init
  620  source init.sh init
  621  cd /
  622  cd fate-root/
  623  cd fate
  624  l;s
  625  ls
  626  vim init.sh
  627  source init.sh init
  628  ls
  629  cd venv
  630  ls
  631  cd bin
  632  ls
  633  cd ..
  634  ls
  635  cd bin
  636  ls
  637  vim init_env.sh
  638  ls
  639  source init_env.sh 
  640  ls
  641   vim init_env.sh.bak 
  642  source init_env.sh 
  643  vim init_env.sh 
  644  cd ..
  645  ls
  646  cd ..
  647  cd fate
  648  ls
  649  vim init.sh
  650  cd bin
  651  ls
  652  vim init_env.sh
  653  source init_env.sh 
  654  source ./init_env.sh 
  655  ls
  656  cd657  cd /
  658  ls
  659  cd fate-root/
  660  ls
  661  cd fate
  662  ls
  663  cd /root
  664  ls
  665  cd files
  666  ls
  667  LS
  668  ls
  669  cd /
  670  cd fate-root/
  671  ls
  672  cd fate
  673  ls
  674  bash init.sh init
  675  cd ..
  676  ls
  677  cd fatge
  678  fate
  679  cd fate
  680  ls
  681  cd mi
  682  cd miniconda/
  683  ls
  684  cd bin
  685  ls
  686  pwd
  687  shutdown -h now
  688  cd /
  689  ls
  690  rm -rf ./fate-root
  691  cd home
  692  ls
  693  cd home
  694  ls
  695  mkdir shell_exercise
  696  cd shell_exercise/
  697  ls
  698  vim test1
  699  test
  700  ./test
  701  ls
  702  ./test1
  703  chmod +x test1
  704  lls
  705  ls
  706  ll
  707  ./test1
  708  help
  709  ls
  710  mv test1 test
  711  vim test
  712  ./test
  713  vim test
  714  ./test
  715  vim test
  716  ./test
  717  vim test
  718  ./test
  719  vim test
  720  ./test
  721  vim test
  722  ./
  723  ./test
  724  vim test
  725  ./test
  726  vim test
  727  ./test
  728  your_name='tome'
  729  echo $your_name
  730  my_url="http://www.google.com"
  731  readonly my_url
  732  my_url="http://www.runoob.com"
  733  unset my_url
  734  str='this is a string'
  735  your_name="runoob"
  736  str="hello,i know you are \"$your_name\"! \n"
  737  echo -e $str
  738  help echo
  739  your_name="runoob"
  740  greeting="hello,"$your_name""
  741  greeting_1="hello,"${your_name}" ! "
  742  echo $greeting $greeting_1
  743  string="abcd"
  744  echo ${#string}
  745  echo ${#sting[0]}
  746  echo ${sting[0]}
  747  echo ${string[0]}
  748  echo ${#string[0]}
  749  string="runoob is a great site"
  750  echo ${string:1:4}
  751  echo `expr index "$string" io`
  752  help expr
  753  help echo
  754  help
  755  help expr
  756  array_name=(value0 value1 value2 value3)
  757  array_name[0]=0
  758  array_name[1]=1
  759  echo $array_name
  760  echo $array_name[1]
  761  echo ${array_name}[1]
  762  echo ${array_name[1]}
  763  echo ${array_name[@]}
  764  length=${#array_name[@]}
  765  echo $length
  766  length=${#array_name[*]}
  767  echo length
  768  echo $length
  769  vim test
  770  ./test
  771  vim test
  772  ./test
  773  echo "shell 传递参数实例! ";
  774  echo "执行的文件名:$0"
  775  echo "执行的文件名:$0";
  776  echo "执行的文件名:$0";
  777  echo "执行的文件名: $0";
  778  vim test
  779  ./test
  780  ./test 1 2 3
  781  ./test
  782  vim test
  783  ./test 1 2 3
  784  vim test
  785  ./test 1 2 3
  786  vim test
  787  ./test 1 2 3
  788  vim test
  789  ./test 1 2 3
  790  vim test
  791  ./test
  792  ./test 1 2 3
  793  vim test
  794  my_array=(a b "c" d)
  795  my_array
  796  my_array[0]
  797  my_array=(a b "c" d)
  798  my_array[0]
  799  my_array=(a b "c" d)
  800  bash my_array[0]
  801  array_name[0]=0
  802  array_name[1]=1
  803  array_name[2]=2
  804  echo ${array_name[0]}
  805  my_array=(a b "c" d)
  806  echo "${my_array[0]}"
  807  echo "${my_array[1]}"
  808  echo "${my_array[*]}"
  809  echo "${my_array[@]}"
  810  echo "${#my_array[@]}"
  811  val=`expr 2+2`
  812  echo $val
  813  val=`expr 2 + 2`
  814  echo $val
  815  val=`expr 20 - 10`
  816  echo $val
  817  val=`expr 20 / 10`
  818  echo $val
  819  val=`expr 20 % 10`
  820  echo $val
  821  val=`expr 20 * 10`
  822  val=`expr 20 \* 10`
  823  echo $val
  824  a=10
  825  b=20
  826  a=$b`
  827  a=$b
  828  ech $a
  829  `expr a=$b`
  830  a=$b
  831  eche $a
  832  echo $a
  833  echo [$a==$b]
  834  echo [ $a==$b ]
  835  echo [ $a == $b ]
  836  if [ $a == $b ]; then echo "a 等于 b"; fi
  837  if [$a != $b ]; then echo "a 不等于 b"; fi
  838  if [ $a != $b ]; then echo "a 不等于 b"; fi
  839  if [ $a != $b ]; then echo " a 不等于 b"; fi
  840  a=10
  841  b=20
  842  vim test
  843  ./test
  844  vim test
  845  ./test
  846  vim test
  847  ./test
  848  vim test
  849  ./test
  850  vim test
  851  ./test
  852  vim test
  853  ./test
  854  vim test
  855  ./test
  856  vim test
  857  ./test
  858  vim test
  859  ./test
  860  vim test
  861  ./test
  862  vim test
  863  ./test
  864  vim test
  865  ./test
  866  pwd
  867  file="/home/shell_exercise/test"
  868  vim test
  869  ./test
  870  echo  this is a test
  871   ech \"haha\"
  872   echo \"haha\"
  873  vim test
  874  ./test
  875  echo -e "ok! \n"
  876  echo -e "ok! \n \c"
  877  echo -e "ok! \c"
  878  echo "it is a test" > myfile
  879  vim myfile
  880  echo '$name\"'
  881  ech `date`
  882  echo `date`
  883  printf "hello,shell\n"
  884  printf "%-10s %-8s %-4s\n" 姓名 性别 体重kg
  885  printf "%-10s %-8s %-4.2f\n" 郭靖 男 66.1234
  886  printf "%-4s %-2s %-6.3f\n" 郭靖 男 66.1234
  887  printf "%-4s %-2s %-5.3f\n" 郭靖 男 66.1234
  888  printf "%-4s %-2s %-3.3f\n" 郭靖 男 66.1234
  889  printf "%-4s %-2s %-2.3f\n" 郭靖 男 66.1234
  890  printf "%-4s %-2s %-1.3f\n" 郭靖 男 66.1234
  891  printf  "%d %s\n" 1 "abc"
  892  pri
  893  printf  %d %s\n 1 "abc"
  894  printf  %s\n 1 "abc"
  895  printf  %s\n "abc"
  896  printf  % "abc"
  897  printf  %s "abc"
  898  printf  %s abc
  899  printf  %s\n abc
  900  printf  %s abc  def
  901  printf "%s\n" abc  def
  902  printf "%s %s %s\n" a b c d e f g h i j
  903  printf "%s and %d \n"
  904  printf " a string, no processing:<%s>\n" "a\nb"
  905  printf " a string, no processing:<%b>\n" "a\nb"
  906  printf " www.runoob.com \a"
  907  printf " www.runoob.com \f"
  908  printf " www.runoob.com \t"
  909  printf " www.runoob.com \v"
  910  printf " www.runoob.com \\"
  911  printf " www.runoob.com \ddd"
  912  vim test
  913  ./test
  914  vim test
  915  ./test
  916  vim test
  917  ./test
  918  vim test
  919  ./test
  920  vim test
  921  ./test
  922  vim test
  923  ./test
  924  if [ $(ps -ef | grep -c "ssh") -gt 1 ]; then echo "true"; fi
  925  ps -ef
  926  ps -ef | grep -c 'ssh'
  927  ps -ef | grep  'ssh'
  928  vim test
  929  ./test
  930  vim test
  931  ./test
  932  vim test
  933  ./test
  934  vim test
  935  ./test
  936  vim test
  937  ./test
  938  vim test
  939  ./test
  940  vim test
  941  ./test
  942  vim test
  943  ./test
  944  vim test
  945  ./test
  946  vim test
  947  ./test
  948  vim test
  949  ./test
  950  vim test
  951  ./test
  952  vim test
  953  ./test
  954  vim test
  955  ./test
  956  vim test
  957  ./test
  958  vim test
  959  ./test
  960  vim test
  961  ./test
  962  vim test
  963  ./test
  964  vim test
  965  ./test
  966  vim test
  967  ./test
  968  vim test
  969  ./test
  970  vim test
  971  ./test
  972  vim test
  973  ./test
  974  vim tes
  975  ls
  976  vim test
  977  ./test
  978  vim test
  979  ./test
  980  vim test
  981  ./test
  982  vim test
  983  ./test
  984  $who > users
  985  vim users
  986  ls
  987  vim users
  988  echo $who > users
  989  vim users
  990  echo $who
  991  $who
  992  cat users
  993  echo "cainiao" > users
  994  cat users
  995  echo "cainiao" >> users
  996  cat users
  997  vim file1
  998  cd /home
  999  ls
 1000  cd shell_exercise/
 1001  ls
 1002  vim file1
 1003  vim file2
 1004  $wc -1 file1
 1005  wc -l < file1
 1006  wc -l  file1
 1007  wc -l  file2
 1008  wc -l < file2
 1009* 
 1010  wc -l  file2
 1011  cat file1
 1012  cat < file1 > file2
 1013  vim file2
 1014  wc -l <<  EOF 
 NIHAO A  WO BUHAO  EOF 







 1015  cat << EOF 
NIHAOA   ADDD EOF


 1016  vim test
 1017  ./test
 1018  $wc -1 file1
 1019  ./test
 1020  vim test
 1021  ./test
 1022  vim test
 1023  ./test
 1024  cat << delimiter
nihaode   dafdaf delimiter




 1025  cat << !
nihaode   dafdaf !








 1026  ls > /dev/null 2>&1
 1027  vim test1
 1028  vim test2
 1029  chmod +x test2
 1030  test2
 1031  ./test2
 1032  history
 1033  vim test
 1034  history > history

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
  • 823
  • 824
  • 825
  • 826
  • 827
  • 828
  • 829
  • 830
  • 831
  • 832
  • 833
  • 834
  • 835
  • 836
  • 837
  • 838
  • 839
  • 840
  • 841
  • 842
  • 843
  • 844
  • 845
  • 846
  • 847
  • 848
  • 849
  • 850
  • 851
  • 852
  • 853
  • 854
  • 855
  • 856
  • 857
  • 858
  • 859
  • 860
  • 861
  • 862
  • 863
  • 864
  • 865
  • 866
  • 867
  • 868
  • 869
  • 870
  • 871
  • 872
  • 873
  • 874
  • 875
  • 876
  • 877
  • 878
  • 879
  • 880
  • 881
  • 882
  • 883
  • 884
  • 885
  • 886
  • 887
  • 888
  • 889
  • 890
  • 891
  • 892
  • 893
  • 894
  • 895
  • 896
  • 897
  • 898
  • 899
  • 900
  • 901
  • 902
  • 903
  • 904
  • 905
  • 906
  • 907
  • 908
  • 909
  • 910
  • 911
  • 912
  • 913
  • 914
  • 915
  • 916
  • 917
  • 918
  • 919
  • 920
  • 921
  • 922
  • 923
  • 924
  • 925
  • 926
  • 927
  • 928
  • 929
  • 930
  • 931
  • 932
  • 933
  • 934
  • 935
  • 936
  • 937
  • 938
  • 939
  • 940
  • 941
  • 942
  • 943
  • 944
  • 945
  • 946
  • 947
  • 948
  • 949
  • 950
  • 951
  • 952
  • 953
  • 954
  • 955
  • 956
  • 957
  • 958
  • 959
  • 960
  • 961
  • 962
  • 963
  • 964
  • 965
  • 966
  • 967
  • 968
  • 969
  • 970
  • 971
  • 972
  • 973
  • 974
  • 975
  • 976
  • 977
  • 978
  • 979
  • 980
  • 981
  • 982
  • 983
  • 984
  • 985
  • 986
  • 987
  • 988
  • 989
  • 990
  • 991
  • 992
  • 993
  • 994
  • 995
  • 996
  • 997
  • 998
  • 999
  • 1000
  • 1001
  • 1002
  • 1003
  • 1004
  • 1005
  • 1006
  • 1007
  • 1008
  • 1009
  • 1010
  • 1011
  • 1012
  • 1013
  • 1014
  • 1015
  • 1016
  • 1017
  • 1018
  • 1019
  • 1020
  • 1021
  • 1022
  • 1023
  • 1024
  • 1025
  • 1026
#!/bin/bash


#for file in `ls /etc`
#  echo $file

#echo '*'*100

#for file in $(ls /etc)
#   echo file

#your_name='qinjx'
#echo $your_name
#echo ${your_name}
# 注释
:<<!
for skill in ada coffe action java; do
  echo "i am good at ${skill}script"
done
!
:<<!
echo "shell 传递参数实例!"
echo "执行的文件名:$0"
echo "执行的文件名:$1"
echo "执行的文件名:$2"
echo "执行的文件名:$3"


echo "第一参数为:$1"
echo "参数个数为:$#"
echo "传递的参数作为一个字符串显示:$*"
echo "传递的参数作为一个字符串显示:[$*]"
echo "传递的参数作为一个字符串显示:$@"
!
:<<!
echo "-- \$* 演示 ---"
for i in "$*"; do
   echo $i
done

echo "-- \$@ 演示 ---"
for i in "$@"; do
  echo $i
done
!
:<<!
a=10
b=20
if [ $a -eq $b ]
then
   echo "$a -eq $b : a 等于b"
else
   echo "$a -eq $b : a 不等于 b"
fi


if [ $a -ne $b ]
then
  echo "a 不等于 b"
else
  echo "a 等于 b"
fi

if [ $a -gt $b ]
then
  echo " a 大于 b"
else
  echo "a 不大于 b"
fi

if [ $a -lt $b ]
then
   echo "a 小于 b"
else
   echo "a 大于 b"
fi

if [ $a -ge $b ]
then
   echo "a 大于等于 b"
else
    echo "a 小于 b"
fi
!

:<<!
a=10
b=20

if [ $a != $b ]
then
  echo "a 不等于 b"
else
  echo "a 等于 b"
fi


if [ $a -lt 100 -a $b -gt 15 ]
then
  echo  " $a 小于100 且 $b 大于15 : 返回 true"
else
   echo "返回false"
fi

if [ $a -lt 100 -o $b -gt 100 ]
then
  echo "返回true"
else
  echo "返回false"
fi
!
:<<!
a=10
b=20

if [[ $a -lt 100 && $b -gt 100 ]]
then
 echo "返回 true"
else
  echo "返回 false"
fi

if [[ $a -lt 100 || $b -gt 100 ]]
then
  echo "返回 true"
else
  echo “返回 false”
fi


if [ -z $a ]
then
  echo "长度为0"
else
  echo "长度不为0"
fi


if [ -n $a ]
then
  echo "长度为0"
else
  echo "长度不为0"
fi


if [ $a ]
then
  echo "长度为空"
else
  echo "长度不为空"
fi
!

:<<!
file='/home/shell_exercise/test'
if [ -r $file ]
then
 echo "文件可读"
else
  echo "文件不可读"
fi

if [ -w $file ]
then
  echo "文件可写"
else
  echo "文件不可写"
fi


if [ -x $file ]
then
  echo "文件可执行"
else
  echo "文件不可执行"
fi

if [ -f $file ]
then
  echo "文件为普通文件"
else
  echo "文件为特殊文件"
fi

if [ -d $file ]
then
  echo "文件是目录"
else
  echo "文件不是目录"
fi

if [ -s $file ]
then
  echo "文件不为空"
else
  echo "文件为空"
fi

if [ -e $file ]
then
  echo "文件存在"
else
  echo "文件不存在"
fi


read name
echo " $name it is a test"


num1=100
num2=100
if test $[num1] -eq $[num2]
then
  echo "两个数相等"
else
  echo ”两个数不相等“
fi


a=5
b=6
result=$[a+b]
echo " $result "


num1="ru1noob"
num2="runoob"
if test $num1 = $num2
then
  echo "字符串相等"
else
  echo "字符串不相等"
fi


cd /bin
if test -e ./bash
then 
   echo "文件存在"
else
   echo "文件不存在"
fi


cd /bin
if test -e ./notFile -o -e ./bash
then
  echo "至少一个文件存在"
else
  echo "两个文件都不存在"
fi


 if [ $(ps -ef | grep -c "ssh") -gt 1 ]; then echo "true"; fi


a=10
b=20
if [ $a == $b ]
then
 echo "a 等于b"
elif  [ $a -gt $b ]
then
  echo "a 大于b"
elif [ $a -lt $b ]
then
  echo "a 小于b"
else
  echo "没有符合的条件"
fi


num1=$[2*3]
num2=$[1+5]
if test $[num1] -eq $[num2]
then
  echo "数字相等"
else
  echo "数字不相等"
fi


for loop in 1 2 3 4 5
# 单引号和双引号不能乱用
do 
   echo " $loop "
done


for str in this is a string
do
  echo $str
done


int=1
while (( $int<=5 ))
do 
   echo $int
   let "int++"
done

echo " ctrl-d 退出"
echo -n "输入网站名"
while read film
do 
   echo " $film 是个好网站"
done

# 无限循环
for (( ; ; ))


a=0
until [ ! $a -lt 10 ]
do 
 echo $a
 a=`expr $a + 1 `
done


echo '输入 1 到 4 之间的数字'
echo '输入数字为:'
read num
case $num in 
   1) echo '选1'
   ;;
   2) echo '选2'
   ;;
   3) echo '选3'
   ;;
   4) echo '选4'
   ;;
   *) echo '不是1到4之间的数字'
   ;;
esac

site='runoob'
case "$site" in
    "runoob") echo "cainiao"
    ;;
    "google") echo "google"
    ;;
    "taobao") echo "taobao"
    ;;
esac


while :
do 
   echo -n "输入1到5之间的数字"
   read num
   case $num in
           1|2|3|4|5) echo "输入数字为 $num "
           ;;
	   *) echo '输入数字非1到5之间'
	      break
	   ;;
   esac
done

while :
do
   echo -n "1到5数字"
   read num
   case $num in
        1|2|3|4|5) echo "shuzi $num "
        ;;
        *) echo "shuzi not 1 dao 5 "
           continue
           echo "结束"
        ;;
   esac
done

demo_func(){
  echo "di yi ge hanshu"
   
}
echo "----hanshu zhixing-----"
demo_func
echo "----hanshu zhixing done-----"


func_return(){
   echo "shuzi jia yunsuan"
   echo "diyige shuzi"
   read num1
   echo "dierge  shuzi"
   read num2
   return $(( $num1+$num2 ))
}

func_return
echo "he wei $? "

func_param(){
   echo "canshu1 $1"
   echo "canshu2 $2"
   echo "canshu10 $10"
   echo "canshu10 ${10}"
   echo "canshu11 ${11}"
   echo "canshu zongshu $# "
   echo "suoyou canshu $*"
}

func_param 1 2 3 4 5 6 7 8 9 34 73 

function demo_func1(){
   echo "diyige shell hanshu"
   return `expr 1 + 1`
}

#demo_func1
#echo $?


function demo_func2(){
   echo "dierge shell hanshu"
   expr 1 + 1
}
demo_func2
echo $?
demo_func1
echo "charu mingling"
echo $?

function demo_func1(){
    echo "first shell hanshu"
    return `expr 1 + 1`
}
demo_func1
echo $?
echo $?

echo "hello world " | grep -e hello
echo $?
echo "hello world " | grep -e bye
echo $?
if echo "hello world " | grep -e hello
then
  echo true
else
  echo false
fi

function demo_func1(){
    return 0
}

function demo_func2(){
  return 12
}

if demo_fun1
then
  echo true
else
  echo false
fi
!

cat << delimiter
NIHAO A D DDD
delimiter


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469

20220228

命令历史
   15  source /etc/profile
   16  vim /etc/profile
   17  source /etc/profile
   18  scp -r /etc/profile root@k8s05:/etc/profile
   19  scp -r /etc/profile root@k8s06:/etc/profile
   20  cd spark-2.4.5-bin-hadoop2.7/
   21  ls
   22  cd conf
   23  ls
   24  cp spark-env.sh.template spark-env.sh
   25  vim spark-env.sh
   26  spark-shell
   27  vim spark-env.sh
   28  spark-shell
   29  ls
   30  cp slaves.template slaves
   31  vim slaves
   32   cd ..
   33  cd ..
   34  scp -r spark-2.4.5-bin-hadoop2.7/ root@k8s05:/usr/local/
   35  scp -r spark-2.4.5-bin-hadoop2.7/ root@k8s06:/usr/local/
   36  cd ..
   37  cd local
   38  ls
   39  cd hadoop-2.7.7/
   40  ls
   41  cd bin
   42  ls
   43  cd hadoop
   44  ls
   45  cd ..
   46  ls
   47  cd bin
   48  ls
   49  cd ..
   50  ls
   51  cd sbin
   52  ls
   53  start-master.sh
   54  start-dfs.sh
   55  ls
   56  start-yarn.sh
   57  bash start-dfs.sh
   58  bash start-yarn.sh
   59  cd ..
   60  ls
   61  cd .
   62  cd ..
   63  cd spark-2.4.5-bin-hadoop2.7/
   64  ls
   65  cd sbin
   66  ls
   67  bash start-master.sh
   68  bash start-slaves.sh
   69  jps
   70  pyspark
   71  cd ..
   72  ls
   73  cd conf
   74  ls
   75  vim spark-env.sh
   76  pwd
   77  scp -r spark-env.sh root@k8s05:/usr/local/spark-2.4.5-bin-hadoop2.7/conf
   78  scp -r spark-env.sh root@k8s06:/usr/local/spark-2.4.5-bin-hadoop2.7/conf
   79  cd ..
   80  ls
   81  cd bin
   82  ls
   83  vim pyspark
   84  pyspark
   85  ls
   86  pwd
   87  scp -r pyspark root@k8s05:/usr/local/spark-2.4.5-bin-hadoop2.7/bin
   88  scp -r pyspark root@k8s06:/usr/local/spark-2.4.5-bin-hadoop2.7/bin
   89  cd ..
   90  ls
   91  cd ..
   92  cd /
   93  ls
   94  cd home
   95  ls
   96  vim hello.py
   97  pwd
   98  cd ..
   99  cd /usr/local
  100  ls
  101  cd spark
  102  cd spark-2.4.5-bin-hadoop2.7/
  103  ls
  104  cd bin
  105  ls
  106  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  107  cd /hoome
  108  cd /home
  109  ls
  110  vim hello.py 
  111  cd -
  112  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  113  cd -
  114  vim hello.py 
  115  cd /usr/local
  116  ls
  117  cd /hoome
  118  cd /home
  119  ls
  120  cd guanlian_algo_confirm2/
  121  ls
  122  pwd
  123  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  124  pip3 install findspark
  125  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  126  pip3 install numpy
  127  pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
  128  pip3 config set global.trusted-host pypi.tuna.tsinghua.edu.cn
  129  pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  130  pip3 install numpy
  131  cd /usr/local
  132  cd spark-2.4.5-bin-hadoop2.7/
  133  ls
  134  cd bin
  135  ls
  136  cd ..
  137  ls
  138  cd bin
  139  ls
  140  echo $PATH
  141  cd /usr/bin
  142  ls
  143  touch spark-submit
  144  pwd
  145  cd -
  146  ln -s /usr/local/spark-2.4.5-bin-hadoop2.7/bin
  147  ln -s /usr/local/spark-2.4.5-bin-hadoop2.7/bin/spark-submit /usr/bin/spark-submit
  148  cd /usr/bin
  149  ls
  150  rm spark-submit
  151  pwd
  152  cd -
  153  ln -s /usr/local/spark-2.4.5-bin-hadoop2.7/bin/spark-submit /usr/bin/spark-submit
  154  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  155  pip3 install tqdm
  156  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  157  cd -
  158  ls
  159  cd /hom
  160  cd /home
  161  ls
  162  cd guanlian_algo_confirm2/
  163  ls
  164  vim fpGrowth.py 
  165  ls
  166  mkdir output
  167  ls
  168  vim fpGrowth.py 
  169  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  170  pip3 list
  171  pip3 install pandas
  172  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py 
  173  cd ..
  174  ls
  175  cd ..
  176  cd /usr/local
  177  ls
  178  cd hadoop-2.7.7/
  179  ls
  180  cd etc
  181  ls
  182  cd hadoop/
  183  ls
  184  vim hadoop-env.sh
  185  pwd
  186  scp -r hadoop-env.sh root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  187  scp -r hadoop-env.sh root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  188  ls
  189  vim yarn-env.sh
  190  scp -r yarn-env.sh root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  191  scp -r yarn-env.sh root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  192  ls
  193  vim slaves
  194  ls
  195  vim slaves
  196  scp -r slaves root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  197  scp -r slaves root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  198  pwd
  199  ls
  200  vim core-site.xml 
  201  scp -r core-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  202  scp -r core-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  203  cp mapred--site.xml.template mapred-site.xml
  204  cp mapred-site.xml.template mapred-site.xml
  205  vim mapred-site.xml
  206  scp -r mapred-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  207  scp -r mapred-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  208  vim yarn-site.xml
  209  cat /etc/hosts
  210  vim core-site.xml
  211  vim hdfs-site.xml
  212  vim core-site.xml
  213  scp -r core-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  214  scp -r core-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  215  scp -r hdfs-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  216  scp -r hdfs-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  217  vim mapred-site.xml
  218  vim yarn-site.xml
  219  vim mapred-site.xml
  220  vim core-site.xml
  221  vim hdfs-site.xml 
  222  scp -r hdfs-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  223  scp -r hdfs-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  224  scp -r core-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  225  scp -r core-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  226  scp -r yarn-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  227  scp -r yarn-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  228  ls
  229  cd ..
  230  ls
  231  cd ..
  232  ls
  233  cd biin
  234  cd bin
  235  ls
  236  cd hadoop
  237  ls
  238  cd hadoop
  239  cd ..
  240  ls
  241  cd bin
  242  ls
  243  hadoop namenode -format
  244  vim yarn-site.xml
  245  ls
  246  cd ..
  247  ls
  248  cd bin
  249  ls
  250  cd ..
  251  ls
  252  cd ..
  253  ls
  254  cd hadoop-2.7.7/
  255  ls
  256  cd etx
  257  cd etc
  258  ls
  259  cd hadoop
  260  ls
  261  vim yarn-site.xml
  262  scp -r yarn-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  263  scp -r yarn-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  264  cd ..
  265  ls
  266  cd ..
  267  ls
  268  cd bin
  269  ls
  270  hadoop namenode -format
  271  cd -
  272  cd etc
  273  ls
  274  cd hadoop
  275  ls
  276  vim yarn-site.xml 
  277  hadoop namenode -format
  278  cd -
  279  cd ..
  280  ls
  281  cd etc
  282  ls
  283  cd hadoop/
  284  ls
  285  vim yarn-site.xml 
  286  ll -a
  287  rm -rf .yarn-site.xml.swp 
  288  vim yarn-site.xml 
  289  hadoop namenode -format
  290  ls
  291  cd ..
  292  ls
  293  cd ..
  294  ls
  295  cd sbin
  296  ls
  297  start-dfs.sh
  298  bash start-dfs.sh
  299  scp -r yarn-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  300  cd -
  301  cd etc
  302  ls
  303  cd hadoop
  304  ls
  305  scp -r yarn-site.xml root@k8s05:/usr/local/hadoop-2.7.7/etc/hadoop
  306  scp -r yarn-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  307  cd -
  308  cd ..
  309  ls
  310  cd sbin
  311  ls
  312  bash start-dfs.sh
  313  jps
  314  bash start-yarn.sh
  315  jps
  316  cd ..
  317  cd spark-2.4.5-bin-hadoop2.7/
  318  ls
  319  cd conf
  320  ls
  321  vim spark-env.sh
  322  history | grep scp
  323  scp -r yarn-site.xml root@k8s06:/usr/local/hadoop-2.7.7/etc/hadoop
  324  scp -r spark-env.sh root@k8s06:/usr/local/spark-2.4.5-bin-hadoop2.7
  325  scp -r spark-env.sh root@k8s05:/usr/local/spark-2.4.5-bin-hadoop2.7
  326  ls
  327  vim slaves
  328  scp -r slaves root@k8s05:/usr/local/spark-2.4.5-bin-hadoop2.7/conf
  329  scp -r slaves root@k8s06:/usr/local/spark-2.4.5-bin-hadoop2.7/conf
  330  cd ..
  331  ls
  332  cd sbin
  333  ls
  334  bash start-all.sh
  335  history | grep fpGrowth
  336  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  337  cd /home
  338  ls
  339  cd guanlian_algo_confirm2/
  340  ls
  341  vim fpGrowth.py 
  342  cd -
  343  cd /usr/local
  344  ls
  345  cd spark-2.4.5-bin-hadoop2.7/
  346  ls
  347  cd conf
  348  ls
  349  vim spark-env.sh
  350  cd ..
  351  ls
  352  cd ..
  353  ls
  354  cd hadoop-2.7.7/
  355  ls
  356  cd etc/hadoop
  357  ls
  358  vim hdfs-site.xml 
  359  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  360  hdfs dfs --copy 
  361  cd /home
  362  ls
  363  cd guanlian_algo_confirm2/
  364  ls
  365  pdw
  366  pwd
  367  hdfs dfs --help
  368  hdfs  --help
  369  hdfs dfs --help
  370  hdfs dfs -h
  371  hdfs dfs --put /home/guanlian_algo_confirm2/tb_order_user_sec_type_group.csv /data
  372  hdfs dfs -put /home/guanlian_algo_confirm2/tb_order_user_sec_type_group.csv /data
  373  vim fpGrowth.py 
  374  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  375  hdfs dfs -rm /data
  376  hdfs dfs -mkdir /data
  377  hdfs dfs -put /home/guanlian_algo_confirm2/tb_order_user_sec_type_group.csv /data
  378  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  379  jps
  380  netstat 
  381  netstat -tunlp|grep 7077
  382  jps
  383  systemctl status firewalld
  384  spark
  385  pyspark
  386  jps
  387  history | grep hdfs
  388  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  389  ls
  390  cd ..
  391  ls
  392  cd ..
  393  ls
  394  cd /usr/local
  395  ls
  396  cd hadoop-2.7.7/
  397  ls
  398  cd sbin
  399  ls
  400  bash stop-all.sh
  401  jps
  402  cd ..
  403  ls
  404  cd ..
  405  ls
  406  cd spark-2.4.5-bin-hadoop2.7/
  407  ls
  408  cd sbin
  409  ls
  410  bash stop-all.sh
  411  jps
  412  kill -9 155936
  413  jps
  414  kill -9 155936
  415  jps
  416  whereis scala
  417  where scala
  418  whereis spark
  419  whereis python
  420  echo $PATH
  421  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  422  cd ..
  423  ls
  424  cd ..
  425  cd hadoop-2.7.7/
  426  ls
  427  cd sbin
  428  ls
  429  bash start-all.sh
  430  cd -
  431  cd ..
  432  ls
  433  cd spark-2.4.5-bin-hadoop2.7/
  434  ls
  435  cd sbin
  436  ls
  437  bash start-all.sh 
  438  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  439  jps
  440  kill -9 155936
  441  jps
  442  kill help\
  443  kill -help
  444  kill -h
  445  man kill
  446  kill -p 155936
  447  jps
  448  kill -p 155936
  449  man kill
  450  kill -pid 155936
  451  man kill
  452  jps
  453  kill -9 9170
  454  jps
  455  kill -9 7078
  456  jps
  457  kill -9 77105
  458  kill -9 199623
  459  kill -9 143236
  460  kill -9 142606
  461  kill -9 151390
  462  jps
  463  kill -9 142606
  464  kill -9 151390
  465  kill -9 142606
  466  pwd
  467  ls
  468  pwd
  469  cd ..
  470  ls
  471  cd ..
  472  ls
  473  cd hadoop-2.7.7/
  474  ls
  475  cd sbin
  476  bash sh start-all.sh
  477  sh start-all.sh
  478  jps
  479  pwd
  480  cd ..
  481  ls
  482  cd ..
  483  ls
  484  cd spark-2.4.5-bin-hadoop2.7/
  485  cd sbin
  486  ls
  487  sh start-all.sh
  488  jps
  489  history | grep submit
  490  spark-sumbit --master spark://k8s04:7707 --executor-memory 5G --total-executor 5 /home/guanlian_algo_confirm2/fpGrowth.py 
  491  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor 5 /home/guanlian_algo_confirm2/fpGrowth.py 
  492  history | grep submit
  493  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/guanlian_algo_confirm2/fpGrowth.py 
  494  cd ..
  495  ls
  496  cd /home
  497  ls
  498  cd guanlian_algo_confirm2/
  499  ls
  500  vim fpGrowth.py 
  501  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/guanlian_algo_confirm2/fpGrowth.py 
  502  jps
  503  kill -9 155936
  504  jps | SparkSubmit
  505  jps | grep  SparkSubmit
  506  man cut
  507  jps | grep  SparkSubmit | awk -F '{print $2}'
  508  awk -F '{print $2}' jps | grep  SparkSubmit 
  509  awk -F '{print $2}' | jps | grep  SparkSubmit 
  510  jps | grep  SparkSubmit | awk -F '{print $2}'
  511  jps | grep  SparkSubmit | awk -F ${print $2}
  512  jps | grep  SparkSubmit | awk -F '{print $2}'
  513  jps | grep  SparkSubmit | awk -F :'{print $2}'
  514  jps | grep  SparkSubmit | awk -F: '{print $2}'
  515  jps | grep  SparkSubmit | awk {print $1}'
  516  jps
  517  jps | grep  SparkSubmit | awk {print $1}
  518  jps | grep  SparkSubmit | awk '{print $1}'
  519  kill -9 $(jps | grep  SparkSubmit | awk '{print $1}')
  520  jps
  521  kill -9 $(jps | grep  SparkSubmit | awk '{print $1}')
  522  jps
  523  kill -9 151390
  524  jps
  525  pstree
  526  pstree -p
  527  yum -y install psmisc
  528  pstree -p
  529  pstree -p | grep sparksubmit
  530  pstree -p | grep SparkSubmit
  531  su  - root
  532  su root
  533  jps
  534  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/guanlian_algo_confirm2/fpGrowth.py 
  535  jps
  536  cd /home
  537  ls
  538  禅道
  539  cd guanlian_algo_confirm2/
  540  ls
  541  vim f
  542  vim fpGrowth.py 
  543  cd ..
  544  ls
  545  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/hello.py 
  546  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/hello.py >/home/mylog.txt
  547  vim mylog.txt 
  548  spark-submit --master spark://k8s04:7707 --executor-memory 5G --total-executor-cores 5 /home/hello.py >/home/mylog.txt 2>&1
  549  vim mylog.txt 
  550  hostname -f
  551  vim /etc/hosts
  552  cd ..
  553  ls
  554  cd usr/
  555  ls
  556  cd local
  557  ls
  558  cd spark-2.4.5-bin-hadoop2.7/
  559  ls
  560  cd sbin
  561  ls
  562  vim start-all-sh
  563  vim start-all.sh
  564  vim start-master.sh 
  565  vim /usr/sbin/check-hostname
  566  cd /usr/sbin/check-hostname
  567  netstat -ano|grep 7077
  568  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  569  cd /home
  570  ls
  571  vim mylog.txt 
  572  ls
  573  jps
  574  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  575  spark-submit --master spark://k8s04:7708 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  576  jps
  577  ufw disable
  578  history | grep iptables
  579  history | grep iptable
  580  history | grep system
  581  systemctl status firewalld
  582  systemctl status firewalld.service
  583  systemctl stop firewalld.service
  584  systemctl status firewalld.service
  585  vim /etc/hostname
  586  nmap -p 7077 master_ip
  587  yum -y install nmap
  588  nmap -p 7077 master_ip
  589  nmap -p 7077 localhost
  590  spark-submit --master spark://k8s04:7708 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  591  cd /usr/local
  592  ls
  593  cd spark-2.4.5-bin-hadoop2.7/
  594  ls
  595  cd sbin
  596  ls
  597  vim start-master.sh 
  598  vim start-master.sh -h 192.168.1.122
  599  start-master.sh -h 192.168.1.122
  600  sh start-master.sh -h 192.168.1.122
  601  cd ..
  602  ls
  603  cd ..
  604  cd local
  605  ls
  606  cd hadoop-2.7.7/
  607  ls
  608  cd sbin/
  609  ls
  610  sh stop-all.sh
  611  cd ..
  612  cd spark-2.4.5-bin-hadoop2.7/
  613  cd sbin/
  614  ls
  615  sh stop-all.sh 
  616  cd -
  617  cd .
  618  cd ..
  619  cd hadoop-2.7.7/
  620  ls
  621  cd sbin/
  622  ls
  623  sh start-all.sh
  624  cd -
  625  cd ..
  626  ls
  627  cd s
  628  cd spark-2.4.5-bin-hadoop2.7/
  629  ls
  630  cd sbin/
  631  ls
  632  sh start-all.sh -h 192.168.1.122
  633  history | grep SparkSubmit
  634  history | grep spark-submit
  635  spark-submit --master spark://k8s04:7708 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  636  ls
  637  pwd
  638  cd /usr/local/hadoop-2.7.7/sbin
  639  sh stop-all.sh 
  640  cd -
  641  sh stop-all.sh 
  642  cd -
  643  sh start-all.sh
  644  cd -
  645  sh start-master.sh -h 192.168.1.122
  646  sh start-slave.sh spark://192.168.1.122:7077
  647  spark-submit --master spark://k8s04:7708 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  648  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  649  sh start-all.sh 
  650  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py
  651  /erro
  652  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py 2>$1
  653  spark-submit --master spark://k8s04:7707 --executor-memory 1G --total-executor-cores 2 /home/hello.py 2>&1
  654  vim /home/mylog.txt 
  655  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/hello.py 2>&
  656  history | grep spark-submit
  657  spark-submit --master spark://k8s04:7077 --executor-memory 1G --total-executor-cores 2 /home/guanlian_algo_confirm2/fpGrowth.py
  658  spark-submit --master spark://k8s04:7077 --executor-memory 5G --total-executor-cores 6 /home/guanlian_algo_confirm2/fpGrowth.py
  659  spark-submit --master spark://k8s04:7077 --executor-memory 32G --total-executor-cores 32 /home/guanlian_algo_confirm2/fpGrowth.py
  660  spark-submit --master spark://k8s04:7077 --executor-memory 256G --total-executor-cores 128 /home/guanlian_algo_confirm2/fpGrowth.py
  661  ls
  662  cd /usr/local
  663  ls
  664  cd /home
  665  ls
  666  cd guanlian_algo_confirm2/
  667  ls
  668  vim fpGrowth.py 
  669  vimm fpGrowth.py 
  670  vim fpGrowth.py 
  671  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py 
  672  history | grep spark-submit
  673  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py  >/home/mylog.txt 2>&1
  674  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py | tee  >/home/mylog.txt
  675  vim /home/mylog.txt 
  676  history | grep spark-submit
  677  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py  >/home/mylog.txt 2>&1
  678  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt 2>&1
  679  vim /home/mylog.txt 
  680  vim /home/mylog.txt
  681  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt 2>&1
  682  spark-submit --master spark://k8s04:7707  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  683  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  684  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  685  cd /usr/local
  686  cd spark-2.4.5-bin-hadoop2.7/
  687  cd conf
  688  ls
  689  cp log4j.properties.template  log4j.properties
  690  vim log4j.properties
  691  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  692  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  693  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  694  hdfs dfs -mkdir /output
  695  hdfs dfs -help
  696  hdfs dfs -ls
  697  hdfs dfs -ls -R
  698  hdfs fs
  699  hadoop fs
  700  hadoop fs -ls
  701  hadoop fs -ls/
  702  hadoop fs -ls /
  703  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  704  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  705  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  706  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  707  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  708  hdfs fs -ls /
  709  hadoop fs -ls /
  710  hadoop fs -ls /output
  711  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  712  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  713  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  714  hadoop fs -ls /
  715  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  716  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  717  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  718  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  719  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  720  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  721  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  722  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  723  pyspark.sql.utils.AnalysisException: 'CSV data source does not support array<string> data type.;'
  724  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  725  pyspark.sql.utils.AnalysisException: 'CSV data source does not support array<string> data type.;'
  726  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  727  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  728  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  729  pip3 install pyspark.pandas
  730  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  731  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  732  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  733  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  734  pip3 install pyspark
  735  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  736  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  737  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  738  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  739  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  740  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  741  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  742  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  743  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  744  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  745  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  746  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  747  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  748  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  749  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  750  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  751  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  752  hdfs://k8s04:9001/output/41_客户类型_关联规则.csv already exists.;'
  753  pip3 install pyhdfs
  754  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  755  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  756  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  757  pip3 install hdfs
  758  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  759  pip3 install hdfs
  760  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  761  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  762  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  763  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  764  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  765  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  766  vim /home/mylog.txt 
  767  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  768  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  769  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  770  vim /home/mylog.txt 
  771  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  772  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  773  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  774  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  775  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  776  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  777  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  778  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  779  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  780  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  781  vim /home/guanlian_algo_confirm2/fpGrowth.py 
  782  hdfs dfs -ls /
  783  hdfs dfs -moveToLocal /output/41_客户类型_关联规则.csv /home/guanlian_algo_confirm2/output
  784  hdfs fs -mv /output/41_客户类型_关联规则.csv /home/guanlian_algo_confirm2/output
  785  hdfs dfs -mv /output/41_客户类型_关联规则.csv /home/guanlian_algo_confirm2/output
  786  hdfs dfs -mv /output/41_客户类型_关联规则.csv /home/guanlian_algo_confirm2/output/
  787  hdfs dfs -get /output/41_客户类型_关联规则.csv /home/guanlian_algo_confirm2/output/
  788  cd /home/guanlian_algo_confirm2/output
  789  ls
  790  vim 41_客户类型_关联规则.csv
  791  cd 41
  792  cd 41_客户类型_关联规则.csv/
  793  LS
  794  ls
  795  vim part-00000-0f755a43-c7ff-40d2-88dc-c36bdcc59e3c-c000.csv 
  796  vim /home/guanlian_algo_confirm2/fpGrowth.py
  797  cd -
  798  cd ..
  799  ls
  800  cd ..
  801  ls
  802  cd ..
  803  ls
  804  cd usr/local
  805  ls
  806  python
  807  python3
  808  cd python3
  809  ls
  810  cd bin
  811  ls
  812  python3
  813  cd ..
  814  ls
  815  cd Python-3.7.12/
  816  ls
  817  cd ..
  818  ls
  819  cd ..
  820  ls
  821  cd local
  822  ls
  823  cd src
  824  ls
  825  cd ..
  826  ls
  827  vim fpGrowth.py 
  828  hadoop dfs -rm -r /output/41_客户类型_关联规则.csv
  829  history | grep spark-submit
  830  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fpGrowth.py | tee /home/mylog.txt
  831  history | grep fpGrowth.py 
  832  vim /home/guanlian_algo_confirm2/fpGrowth.py
  833  cd /home/guanlian_algo_confirm2/
  834  ls
  835  cp fpGrowth.py fp_growth_confirm.py 
  836  vim fp_growth_confirm.py 
  837  vim calculate_fp_growth.py
  838  vim fp_growth_confirm.py 
  839  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  840  vim fp_growth_confirm.py 
  841  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  842  vim fp_growth_confirm.py 
  843  ls
  844  vim  calculate_fp_growth.py 
  845  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  846  vim fp_growth_confirm.py 
  847  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  848  vim fp_growth_confirm.py 
  849  cd /home/guanlian_algo_confirm2/
  850  ls
  851  vim fp_growth_confirm.py 
  852  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  853  vim fp_growth_confirm.py 
  854  vim  calculate_fp_growth.py 
  855  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  856  vim fp_growth_confirm.py 
  857  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  858  cd /home/guanlian_algo_confirm2/
  859  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  860  vim /home/mylog.txt 
  861  pip3 install lzma
  862  vim /home/mylog.txt 
  863  yum install xz-devel
  864  yum install python-backports-lzma
  865  pip3 install backports.lzma
  866  jps
  867  cd /home/guanlian_algo_confirm2/
  868  ls
  869  vim fp_growth_confirm.py 
  870  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  871  vim fp_growth_confirm.py 
  872  vim calculate_fp_growth.py 
  873  vim fp_growth_confirm.py 
  874  ls
  875  vim __init__.py
  876  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  877  ls
  878  cd /home
  879  ls
  880  cd guanlian_algo_confirm2/
  881  ls
  882  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  883  vim fp_growth_confirm.py 
  884  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  885  vim fp_growth_confirm.py 
  886  cd /home
  887  cd guanlian_algo_confirm2/
  888  ls
  889  vim fp
  890  vim fp_growth_confirm.py 
  891  vim calculate_fp_growth.py 
  892  vim fp_growth_confirm.py 
  893  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  894  vim fp_growth_confirm.py 
  895  vim calculate_fp_growth.py 
  896  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  897  vim fp_growth_confirm.py 
  898  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  899  vim fp_growth_confirm.py 
  900  cd /home
  901  ls
  902  cd guanlian_algo_confirm2/
  903  vim fp_growth_confirm.py 
  904  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  905  vim fp_growth_confirm.py 
  906  cd /home/guanlian_algo_confirm2/
  907  vim fp_growth_confirm.py 
  908  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  909  vim fp_growth_confirm.py 
  910  cd /home/guanlian_algo_confirm2/
  911  vim fp_growth_confirm.py 
  912  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  913  vim fp_growth_confirm.py 
  914  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  915  vim fp_growth_confirm.py 
  916  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  917  vim fp_growth_confirm.py 
  918  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  919  vim fp_growth_confirm.py 
  920  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  921  vim fp_growth_confirm.py 
  922  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  923  vim fp_growth_confirm.py 
  924  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  925  vim fp_growth_confirm.py 
  926  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
  927  vim fp_growth_confirm.py 
  928  free -h
  929  exit
  930  ls
  931  exit
  932  jps
  933  ls
  934  cd /home/
  935  ks
  936  ls
  937  cd guanlian_algo_confirm2/
  938  ls
  939  cd ..
  940  ls
  941  cd /b
  942  cd /root/
  943  ls
  944  cd /data/
  945  ls
  946  cd /data/
  947  ls
  948  cd engine-customer-churn/
  949  ls
  950  cd ..
  951  ls
  952  clear
  953  ls
  954  exit
  955  eixt
  956  exit
  957  free -h
  958  cd /
  959  cd /data
  960  ls
  961  rm lib_needed.txt
  962  ls
  963  free -h
  964  ks
  965  ls
  966  cd engine-customer-churn/
  967  ls
  968  ls --help
  969  ls -a
  970  ll
  971  cd temp
  972  ls
  973  ll
  974  ls
  975  LS
  976  ls
  977  vim utils.py
  978  pip3 list
  979  pip3 install SQLAlchemy==1.4.23
  980  ls
  981  vim step5_main_run_pred.py
  982  python3 step5_main_run_pred.py
  983  pip3 install trino==0.306.0
  984  python3 step5_main_run_pred.py
  985  pip3 list
  986  pip3 install PyHive==0.6.4
  987  python3 step5_main_run_pred.py
  988  lsblk
  989  free -h
  990  df -Th
  991  cd /data
  992  ls
  993  cd ..
  994  ls
  995  cd data
  996  ls
  997  cd ..
  998  LS
  999  ls
 1000  cd local
 1001  ls
 1002  cd /
 1003  ls
 1004  cd home
 1005  ls
 1006  cd guanlian_algo_confirm2/
 1007  ls
 1008  vim fpGrowth.py
 1009  history
 1010  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
 1011  history
 1012  spark-submit --master spark://k8s04:7077  /home/guanlian_algo_confirm2/fp_growth_confirm.py | tee /home/mylog.txt
 1013  history
 1014  history > out.txt


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392
  • 393
  • 394
  • 395
  • 396
  • 397
  • 398
  • 399
  • 400
  • 401
  • 402
  • 403
  • 404
  • 405
  • 406
  • 407
  • 408
  • 409
  • 410
  • 411
  • 412
  • 413
  • 414
  • 415
  • 416
  • 417
  • 418
  • 419
  • 420
  • 421
  • 422
  • 423
  • 424
  • 425
  • 426
  • 427
  • 428
  • 429
  • 430
  • 431
  • 432
  • 433
  • 434
  • 435
  • 436
  • 437
  • 438
  • 439
  • 440
  • 441
  • 442
  • 443
  • 444
  • 445
  • 446
  • 447
  • 448
  • 449
  • 450
  • 451
  • 452
  • 453
  • 454
  • 455
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • 463
  • 464
  • 465
  • 466
  • 467
  • 468
  • 469
  • 470
  • 471
  • 472
  • 473
  • 474
  • 475
  • 476
  • 477
  • 478
  • 479
  • 480
  • 481
  • 482
  • 483
  • 484
  • 485
  • 486
  • 487
  • 488
  • 489
  • 490
  • 491
  • 492
  • 493
  • 494
  • 495
  • 496
  • 497
  • 498
  • 499
  • 500
  • 501
  • 502
  • 503
  • 504
  • 505
  • 506
  • 507
  • 508
  • 509
  • 510
  • 511
  • 512
  • 513
  • 514
  • 515
  • 516
  • 517
  • 518
  • 519
  • 520
  • 521
  • 522
  • 523
  • 524
  • 525
  • 526
  • 527
  • 528
  • 529
  • 530
  • 531
  • 532
  • 533
  • 534
  • 535
  • 536
  • 537
  • 538
  • 539
  • 540
  • 541
  • 542
  • 543
  • 544
  • 545
  • 546
  • 547
  • 548
  • 549
  • 550
  • 551
  • 552
  • 553
  • 554
  • 555
  • 556
  • 557
  • 558
  • 559
  • 560
  • 561
  • 562
  • 563
  • 564
  • 565
  • 566
  • 567
  • 568
  • 569
  • 570
  • 571
  • 572
  • 573
  • 574
  • 575
  • 576
  • 577
  • 578
  • 579
  • 580
  • 581
  • 582
  • 583
  • 584
  • 585
  • 586
  • 587
  • 588
  • 589
  • 590
  • 591
  • 592
  • 593
  • 594
  • 595
  • 596
  • 597
  • 598
  • 599
  • 600
  • 601
  • 602
  • 603
  • 604
  • 605
  • 606
  • 607
  • 608
  • 609
  • 610
  • 611
  • 612
  • 613
  • 614
  • 615
  • 616
  • 617
  • 618
  • 619
  • 620
  • 621
  • 622
  • 623
  • 624
  • 625
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • 633
  • 634
  • 635
  • 636
  • 637
  • 638
  • 639
  • 640
  • 641
  • 642
  • 643
  • 644
  • 645
  • 646
  • 647
  • 648
  • 649
  • 650
  • 651
  • 652
  • 653
  • 654
  • 655
  • 656
  • 657
  • 658
  • 659
  • 660
  • 661
  • 662
  • 663
  • 664
  • 665
  • 666
  • 667
  • 668
  • 669
  • 670
  • 671
  • 672
  • 673
  • 674
  • 675
  • 676
  • 677
  • 678
  • 679
  • 680
  • 681
  • 682
  • 683
  • 684
  • 685
  • 686
  • 687
  • 688
  • 689
  • 690
  • 691
  • 692
  • 693
  • 694
  • 695
  • 696
  • 697
  • 698
  • 699
  • 700
  • 701
  • 702
  • 703
  • 704
  • 705
  • 706
  • 707
  • 708
  • 709
  • 710
  • 711
  • 712
  • 713
  • 714
  • 715
  • 716
  • 717
  • 718
  • 719
  • 720
  • 721
  • 722
  • 723
  • 724
  • 725
  • 726
  • 727
  • 728
  • 729
  • 730
  • 731
  • 732
  • 733
  • 734
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • 744
  • 745
  • 746
  • 747
  • 748
  • 749
  • 750
  • 751
  • 752
  • 753
  • 754
  • 755
  • 756
  • 757
  • 758
  • 759
  • 760
  • 761
  • 762
  • 763
  • 764
  • 765
  • 766
  • 767
  • 768
  • 769
  • 770
  • 771
  • 772
  • 773
  • 774
  • 775
  • 776
  • 777
  • 778
  • 779
  • 780
  • 781
  • 782
  • 783
  • 784
  • 785
  • 786
  • 787
  • 788
  • 789
  • 790
  • 791
  • 792
  • 793
  • 794
  • 795
  • 796
  • 797
  • 798
  • 799
  • 800
  • 801
  • 802
  • 803
  • 804
  • 805
  • 806
  • 807
  • 808
  • 809
  • 810
  • 811
  • 812
  • 813
  • 814
  • 815
  • 816
  • 817
  • 818
  • 819
  • 820
  • 821
  • 822
  • 823
  • 824
  • 825
  • 826
  • 827
  • 828
  • 829
  • 830
  • 831
  • 832
  • 833
  • 834
  • 835
  • 836
  • 837
  • 838
  • 839
  • 840
  • 841
  • 842
  • 843
  • 844
  • 845
  • 846
  • 847
  • 848
  • 849
  • 850
  • 851
  • 852
  • 853
  • 854
  • 855
  • 856
  • 857
  • 858
  • 859
  • 860
  • 861
  • 862
  • 863
  • 864
  • 865
  • 866
  • 867
  • 868
  • 869
  • 870
  • 871
  • 872
  • 873
  • 874
  • 875
  • 876
  • 877
  • 878
  • 879
  • 880
  • 881
  • 882
  • 883
  • 884
  • 885
  • 886
  • 887
  • 888
  • 889
  • 890
  • 891
  • 892
  • 893
  • 894
  • 895
  • 896
  • 897
  • 898
  • 899
  • 900
  • 901
  • 902
  • 903
  • 904
  • 905
  • 906
  • 907
  • 908
  • 909
  • 910
  • 911
  • 912
  • 913
  • 914
  • 915
  • 916
  • 917
  • 918
  • 919
  • 920
  • 921
  • 922
  • 923
  • 924
  • 925
  • 926
  • 927
  • 928
  • 929
  • 930
  • 931
  • 932
  • 933
  • 934
  • 935
  • 936
  • 937
  • 938
  • 939
  • 940
  • 941
  • 942
  • 943
  • 944
  • 945
  • 946
  • 947
  • 948
  • 949
  • 950
  • 951
  • 952
  • 953
  • 954
  • 955
  • 956
  • 957
  • 958
  • 959
  • 960
  • 961
  • 962
  • 963
  • 964
  • 965
  • 966
  • 967
  • 968
  • 969
  • 970
  • 971
  • 972
  • 973
  • 974
  • 975
  • 976
  • 977
  • 978
  • 979
  • 980
  • 981
  • 982
  • 983
  • 984
  • 985
  • 986
  • 987
  • 988
  • 989
  • 990
  • 991
  • 992
  • 993
  • 994
  • 995
  • 996
  • 997
  • 998
  • 999
  • 1000
  • 1001
  • 1002
  • 1003
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/231952
推荐阅读
相关标签
  

闽ICP备14008679号