Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel1
outlinefalse
stylenone
typelist
printabletrue

...

Exercise: Setting Up

Info

Question:

  • There is a folder called intro_to_linux within the /project/<project-name>/ folder.

  • How would you copy this folder into your home folder?

...

Command

Description

tail

Code Block
Usage: tail [OPTION]... [FILE]...
Print the last 10 lines of each FILE to standard output.
 -f, --follow[={name|descriptor}]
                           output appended data as the file grows;
                             an absent option argument means 'descriptor’
 -n, --lines=[+]NUM       output the last NUM lines, instead of the last 10;
                             or use -n +NUM to output starting with line NUM

...

Exercises: View Files

Info

Question: Within the intro_to_linux folder, how can we view the contents of the software.csv file?

  1. How can we view the entire file?

  2. How can we view the start of the file?

  3. How can we view the end of the file?

...

Code Block
[intro_to_linux]$ grep -r -i nvidia *
clusters/teton.html:    .../788758554/NVidia+HPC+SDK">NVidia HPC SDK</a></td>
clusters/beartooth.html:    .../788758554/NVidia+HPC+SDK">NVidia HPC SDK</a></td>
software.csv:compiler,NVidia HPC SDK,nvhpc,"beartooth,teton"...
software.csv:libraries and toolkits,cuDNN,cudnn,beartooth,The NVIDIA CUDA Deep...
software.csv:libraries and toolkits,TensorRT,,beartooth,"NVIDIA TensorRT, an...

...

Exercises: Search Files

Info

We will be using the software.csv file:

Lets take a quick look at it using head to view the first few lines:

...