Intro to Linux and CLI

Materials and notes for practicals in Masaryk University course DSIB01 Introduction to Bioinformatics taught in the fall semester 2021/2022


Intro to Linux and CLI

This lesson is building on top of previous lesson and you should already have:

This lesson guides you through the basics of file systems and the command line interface (cli). If you have stored files on a computer at all and recognize the word “file” and either “directory” or “folder” (two common words for the same thing), you’re ready for this lesson.

Table of content

Summary

Commands

  • ls: list a content of a directory
  • cd: change current working directory
  • pwd: print current working directory
  • man: look up the manual page for a particular command
  • mkdir: create a directory
  • rmdir: remove and empty directory
  • cp: copy a file or directory
  • mv: move a file or directory
  • rm: remove a file
  • echo: print a message to the screen

Concepts

  • relative path: a file or directory location relative to where we currently are in the file system
  • absolute path: a file or directory location in relation to the root of the file system
  • use Tab key to autocomplete paths
  • the Linux command line does not have an undo feature - perform destructive actions carefully

References

https://ryanstutorials.net/linuxtutorial/
https://btholt.github.io/complete-intro-to-linux-and-the-cli/
https://swcarpentry.github.io/shell-novice/