Linux Command Line
When working with High-Performance Computing (HPC) systems in Linux, there are several basic commands that are commonly used. Here are some of the essential commands:
pwd
: Print the current working directory. It displays the path of the current directory you are in.pwd
ls
: List the contents of a directory. It displays the files and directories in the current working directory.ls
cd
: Change directory. Usecd
followed by the directory path to navigate to a specific directory.cd /path/to/dir
mkdir
: Create directories. Usemkdir
followed by the directory name to create a new directory.mkdir
touch
: Create a new empty file.touch
mv
: Move or rename files and directories. It can be used to move files or directories from one location to another or rename them.mv
cp
: Copy files and directories. You can usecp
to create a copy of a file or directory.cp
rm
: Remove files and directories. This command is used to delete files and directories. Be cautious when using it, as deleted files are not recoverable.rm
man
: Display page manual for the command.man
cat
: Display file content. It is used to print the contents of a file on the console.cat filename
nano
orvi
: Text editors for creating or modifying files. You can use eithernano
orvi
to edit text files directly from the command line.nano filename
scp
: Transferring files to HPC Clusters from a Mac/Linux.scp filename username@cluster:~
ssh
: Secure Shell (SSH) is used to connect to remote HPC systems. You can use thessh
command followed by the remote server's IP address or hostname to establish a secure shell connection.ssh nautilus
These are just a few basic commands, but there are many more available in Linux for various purposes. It's also worth mentioning that some HPC systems may have additional commands or utilities specific to their setup or configuration.