IntroductionToLinux Fall2023
IntroductionToLinux Fall2023
Wesley Brashear
15 September 2023
● Kali Linux
● Deepin
Login sessions that are idle for 60 minutes will be closed automatically
Processes run longer than 60 minutes on login nodes will be killed automatically.
Do not use more than 8 cores on the login nodes!
Do not use the sudo command.
$ cd $SCRATCH
$ cp -r /scratch/training/fundamentals_linux .
16
Example:
-rwxr-xr-- 1 training lms 30 Oct 28 13:16 Molden
User has read, write and executable permission
Group has read and executable permission but not write permission
Other has read permission but not write or executable permission
● head -n filename
● less filename
○ n is an integer
● more filename
○ displays the first n lines
● cat filename ● tail -n filename
● cat -A filename ○ displays the last n lines
○ shows hidden characters ● tail -f filename
○ Displays the last 10 lines of
a file and waits for new
lines, ctrl-c (^c) to exit.
Examples
● mv proj1* ~/Project1
○ moves all files beginning with proj1 into dir Project1
○ the dir Project1 must already exists in your home dir
● ls proj?.log
○ lists all files where ? can be any one character
● mv enzyme[12].com enzyme
○ moves enzyme1.com and enzyme2.com into dir enzyme
● mv project{*.com,*.log,*.txt} project1-5
○ moves all files that start with project and end with .com, .log, or .txt to the directory project1-5
that already exists.
current
dir
wget https://hprc.tamu.edu/files/training/DOS_script.sh
100%[====================================================================================
========================================>] 47 --.-K/s in 0s
file DOS_script.sh
file DOS_script.sh
If the tab key did not complete the file name then either the file does not exist
or there are two or more files that begin with the same characters in which
case you need to hit tab twice then type a few more characters and hit tab
again to complete.
echo $HOME
echo $PATH
/usr/lib64/qt-3.3/bin:/sw/local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/
lpp/mmfs/bin:/home/netid/.local/bin
# User specific environment and startup programs Syntax to set a global variable:
PATH=$PATH:$HOME/.local/bin:$HOME/bin export var_name=value
export PATH Specify PATH for all sessions
● Files > copy and edit files on the cluster’s file systems
● Jobs > submit and monitor cluster jobs
● Clusters > open a shell terminal (command line) on a login node
● Interactive Apps > start graphical software on a compute node
● Dashboard > view file quotas and computing account allocations
For more details and options on TAMU HPRC clusters, please visit
https://hprc.tamu.edu/wiki/HPRC:File_Transfers
sftp> bye
Location: Blocker