Day 2--王珊

linux

linux command.png

linux command

  1. pwd: print working directory
  2. mkdir: make directory
    mkdir project # store bioinformatics project
  3. ls: list either files or content
  4. rm: remove
  5. cd: enter this content cd -: return to previous content
  6. vi: create new text file
    vi new_file.txt # press i, then type text, then press Esc,
    :x # save and exit
  7. cat new_file.txt: show file.
    head # show first 10 row. tail #show last 10 row.
    head -3 # show first 3 row.
  8. cp: copy file
    cp new_file.txt second_file.txt #copy new_file.txt and save as second_file.txt
  9. mv: move file to folder, or rename
    mv second_file.txt project # move second_file.txt to project
    mv second_file.txt home.txt # rename to home.txt
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。