Evolutionary Genetics - Bioinformatics
We start with creating a working directory in home.
cd ${HOME} # make sure you are home
# cd # this would be an alternative to bring you home
mkdir Assignments # create a working folder
cd Assignments # switch to the directory
pwd # make sure it worked
We can use the command touch
the create an empty text file.
touch A1_Nik_Tesla_Logfile.txt
stat A1_Nik_Tesla_Logfile.txt
The touch command is the easiest way to create new, empty files. It is also used to change the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories. The syntax is touch [option] file
. The complete timestamps for any file or directory can be viewed by using the stat
command.
I like to add a simple file header to the log file before I start recoding.
cat "-----------------" > A1_Nik_Tesla_Logfile.txt
cat " L O G - F I L E " >> A1_Nik_Tesla_Logfile.txt
cat " Nik Tesla" >> A1_Nik_Tesla_Logfile.txt
cat "-----------------" >> A1_Nik_Tesla_Logfile.txt
cat "" >> A1_Nik_Tesla_Logfile.txt
… more from you!