Homework of my day 2 study of BIC by 生信星球.
Content for today is Linux OS login and basic commands.
A open-sourced, free, stable, and safe operation system, accounting for 2.7% of the computer OS market.
Mainly in supercomputers
Different from the graphic interface of Windows,the operation of Linux depends on the command lines.
Because the upstream data processing is usually conducted by servers (high-performance computers) which are using Linux OS.
Omics data need Linux and R.
#. How to log in sever provided by DuoHua?
Log in by Mac:
ssh userid@ip
then put in PIN
pwd: print working directory
pwd #显示当前路径
mkdir: make directory
mkdir biosoft #backup bioinformatics software or packages
mkdir project #save working projects
mkdir tmp #save others
mkdir src # save source codes
ls: list directory or file
cd: change directory
cd project #go into project
cd - # go back to previous directory
cd tmp
cd #go back to home directory
cd tmp
cd ~ #go back to home directory
cd tmp
cd .. # go back to upper directory
vi, create a new txt file (vi is the txt editor of linux)
cd tmp
vi hello_hello.txt
something wrong when I press esc.
I can not quit from vi mode.
I have to shut down the terminal and open a new one to log in again.
after searching for the command, the correct command should be press esc to quit edting mode, then press colon key to call out prompt, put in x, then enter to quit vi.
cat hello_hello.txt
head -n 3 hello_wolrd.txt
cp file1 file2 means copy file1 and rename it as file2.
cp hello_hello.txt hello2.txt
ls
cd ..
cp -r tmp tmp2 #copy whole directory
ls
mv, move file to directory, or rename
cd tmp
ls
mv hello_hello.txt ../
cd ../
ls
mv hello_hello.txt hell3.txt
ls
this is easy. I have used it in above practice when I made a wrong file or directory.
The End.
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。