前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >生信入门 第二天

生信入门 第二天

原创
作者头像
用户11153857
发布2024-06-09 08:44:55
1120
发布2024-06-09 08:44:55
举报
文章被收录于专栏:生信星球学习小组170

Homework of my day 2 study of BIC by 生信星球.

Content for today is Linux OS login and basic commands.

1. What is Linux

A open-sourced, free, stable, and safe operation system, accounting for 2.7% of the computer OS market.

1.1 Application Scenario

Mainly in supercomputers

1.2 Strict Authentication

1.3 Command line

Different from the graphic interface of Windows,the operation of Linux depends on the command lines.

1.4 Directory structure

2. Why to use Linux?

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:

代码语言:linux
复制
ssh userid@ip

then put in PIN

3. A few very, very high frequency linux commands

3.1 pwd

pwd: print working directory

代码语言:linux
复制
pwd  #显示当前路径

3.2 mkdir

mkdir: make directory

代码语言:linux
复制
mkdir biosoft #backup bioinformatics software or packages
mkdir project #save working projects
mkdir tmp #save others
mkdir src # save source codes

3.3 ls

ls: list directory or file

3.4 cd

cd: change directory

代码语言:linux
复制
cd project #go into project
cd - # go back to previous directory
代码语言:linux
复制
cd tmp
cd #go back to home directory
cd tmp
cd ~ #go back to home directory
cd tmp
cd .. # go back to upper directory

3.5 vi

vi, create a new txt file (vi is the txt editor of linux)

代码语言: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.

3.6 cat

代码语言:linux
复制
cat hello_hello.txt
head -n 3 hello_wolrd.txt

3.7 cp

cp file1 file2 means copy file1 and rename it as file2.

代码语言:linux
复制
cp hello_hello.txt hello2.txt
ls
代码语言:linux
复制
cd ..
cp -r tmp tmp2 #copy whole directory
ls

3.8 mv

mv, move file to directory, or rename

代码语言:linux
复制
cd tmp
ls
mv hello_hello.txt ../
cd ../
ls
mv hello_hello.txt hell3.txt
ls

3.9 rm

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 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1. What is Linux
    • 1.1 Application Scenario
      • 1.2 Strict Authentication
        • 1.3 Command line
          • 1.4 Directory structure
          • 2. Why to use Linux?
          • 3. A few very, very high frequency linux commands
            • 3.1 pwd
              • 3.2 mkdir
                • 3.3 ls
                  • 3.4 cd
                    • 3.5 vi
                      • 3.6 cat
                        • 3.7 cp
                          • 3.8 mv
                            • 3.9 rm
                            领券
                            问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档