GDM 2025 Workshop - Unix
Presented by Lara Frcej and Victor Olet
Overview
Operating systems
Files
DNA_SEQUENCE.txt
File systems
File systems
File systems
Graphical
Text based
Setonix file structure
Setonix file structure
Secure SHell (SSH) protocol
Log into setonix
Download the data
1. Navigating files - commands
mkdir (make directory)
touch
man (manual)
pwd (print working directory)
cd (change directory)
ls (list)
1. Navigating files - module 1
Useful shortcuts
2. Working with files - commands 1/2
cp (copy)
2. Working with files - commands 2/2
Examples:
Globs (Wild cards which match patterns)
2. Working with files - module 2
3. Reading files - commands
3. Reading files - module 3
4. Finding and replacing - commands
sed (manipulate files)
grep (search a file for input string)
4. Finding things - module 4
5. Variables and alias - commands
Setting bash alias
$variable (assign values to strings)
echo (display text)
5. Variables and alias - module 5
6. File permissions - commands 1/2
Showing permissions
3 categories
3 alterations
3 main kinds of permissions
Files on setonix are created with -rw-r--r--
Directories are created with drwxr-sr-x/drwxr-xr-x
6. File permissions - commands 2/2
Using numerical representations
Examples:
6. File permissions - understanding
6. File permissions - understanding
6. File permissions - module 6
7. Scripting - commands 1/3
Examples:
#!/bin/bash (shebang)
# (hash)
Bash (filename)
$1, $2, $3
$@
read (variable)
7. Scripting - commands 2/3
Examples:
$1
$1 not defined
#!/bin/bash (shebang)
# (hash)
Bash (filename)
$1, $2, $3
$@
read (variable)
7. Scripting - commands 3/3
If statements (checking if things are true before proceeding)
General structure:
if [ test ]
then
[ commands]
elif [ test ]
then
[commands]
else
[commands]
fi
Check if file exists:� If [ -f (filename) ]� then� [commands] � Fi
Check if file does not exist:� If [ ! -f (filename) ]� then� [commands] � Fi
7. Scripting - module 7