Essential_Commands - Karthikeyan-Lab-Caltech/Wiki GitHub Wiki

Basic Commands

pwd - print working directory

ls - list files in directory

cd .. - move directory back

cd $directory - move into directory

rm $file - remove file

mkdir $directory - make directory

File Operations

cp $file1 $file2 - copy file1 into file2

mv $file1 $file2 - rename file1 into file2

From computer (while not ssh into HPC)

scp $file1 [email protected]:/$file1 - Upload file1 from computer onto HPC

Permisions

See permissions with ls -l

change permissions with chmod ### $file

For everything inside a directory chmod -R ### $directory

chmod numbers
Number Permision
0 ---
1 --x
2 -w-
3 -wx
4 r--
5 r-x
6 rw-
7 rwx
⚠️ **GitHub.com Fallback** ⚠️