Load an interactive mode in Arina cluster
ssh -Y [email protected]
interactive -n 4 -p vfast -r mer1
Exercise 1
- Open your terminal
- What's the path to your current directory?
- How many folders does this directory contain?
- Navigate to /home/username/MER2024/ehu_genomic_data
- Navigate to your home directory
- Make a new directory called "linux_intro"
- Navigate into the "linux_intro" directory
SOLUTION
pwd
ls
cd /home/username/MER2024/ehu_genomic_data
cd
mkdir linux_intro
cd /linux_intro
Exercise 2
- Create a textfile called "delete_me.txt"
- Create a directory called "delete_me"
- Move "delete_me.txt" to "delete_me"
- Delete the directory
SOLUTION
touch delete_me.txt
mkdir delete_me
mv delete_me.txt delete_me
rm -r delete_me
Exercise 3
- Save the first line of the file "WatsonCrikck1953.txt" as "papertittle.txt"
- Save the remaining lines as "mainbody.txt"
SOLUTION
head -1 WatsonCrick1953.txt > papertitle.txt
tail -n +2 WatsonCrick1953.txt > mainbody.txt
Exercise 4
- How many values are in "numbers.list" file?
- How many unique values are in "numbers.list" file?
SOLUTION
wc -l numbers.list
sort -u numbers.list | wc -l