Skip to content

Linux

Basic commands

The cluster shell is bash. Bash allows users to enter commands, run scripts, and automate tasks. It also supports features such as command history, tab completion, and shell scripting, which makes it a powerful tool for system administrators, developers, and power users.

If you want a valid, complete overview, follow the first three lectures of the missing semester course provided by MIT.

A minimal introduction to valuable commands:

# Which folder am I in?
$ pwd
# Which computer (host) am I in?
$ hostname
# List the files in this directory
$ ls
# List the files with extra information
$ ls -l
# List all the files in this directory, even hidden ones
$ ls -a
# Combine the previous two to get all the files with extra information
$ ls -l -a
# How to enter a folder
$ cd folder
# How to check the content of a file
$ less filename
# How to exit
$ exit