Part 6 Appendices
6.2 Local access of files on the HPC
Mac:
1. Click Finder > “Go” in task bar > “Connect to Server” in the pulldown menu.
2. Type smb://pn.vai.org and click “Connect”.
3. Select ‘projects’ and ‘researchtemp’. Click “OK”.
4. You can now navigate using Finder, or type ls /Volumes/projects/ or ls /Volumes/researchtemp/ in the Terminal.
Windows:
* In File Explorer, type \\pn.vai.org\ and hit Enter.
6.3 Bash cheatsheet
| Name | Command Line | Description | Example |
|---|---|---|---|
| Print Working Directory |
pwd
|
Displays the current working directory |
|
| List |
ls
|
Lists the files and directories in the current directory |
|
| List More Detail |
ls -lht
|
Display more details about the file |
|
| Make Directory |
mkdir
|
Creates a new directory |
|
| Move |
mv
|
Moves or renames files or directories |
|
| Change Directory |
cd
|
Change to an existing directory |
|
| Remove |
rm
|
Deletes files and directories |
*Note: -r means directory Result: TaskProject is deleted |
| Copy |
cp
|
Copies files or directories |
|
| Search for File |
find
|
Search for files and directories based on various criteria like name, size, and modification time |
Result: Task1 will appear within the Project directory Project Project/Task1 |
| Head |
head
|
Display at the beginning of a file |
|
| Tail |
tail
|
Display at the end of a file |
|
| Less |
less
|
Load the necessary portion of a file |
|
| More |
more
|
Load the entire file |
|
| Quit |
q
|
Stop viewing the current file | quit viewing the current file |
| Concatenate |
cat
|
Display the contents of a file |
|
| Search for Text |
grep
|
Search for a specific pattern of text within files |
|
| Word, Line, and Character Count |
wc
|
Display the number of words, lines, and characters in a file |
|
| Touch |
touch
|
Create a new empty file |
|