Intro to Linux Command-Line: Intermediate Features and Summary

Goal: A quick review and suggestion of other commands and areas of Linux to explore further after this workshop that you’ll find useful.



More Intermediate Features

  • Environment Variables: Define the behavior of the environment: Try:

    • echo $HOME

    • echo $USER

    • echo $SHELL

    • echo $PATH

  • File searching/manipulation

    • sed: stream editor for filtering and transforming text

      • $ sed 's/windows/linux/2' fav_os.txt

      • Above command would substitute the 2nd instance of string ‘windows’ in each line of the fav_os.txt file with string ‘linux’, but leave the any following instances of ‘windows’ alone in the file.

    • gawk: pattern scanning and processing language

      • Scan specifying field separators, assign variables, specif source type, etc.

  • Ability to update file permission and ownership: chmod/chown

    • User-case of sharing files/folders.


More Intermediate Features

  • Aliases in .bashrc.

    • Create short-cuts of popular/frequently used commands.

  • Text editors: vi/vim/nano

    • vimtutor

    • touch

  • Remote access with ssh.


Next Steps, Suggestions


Request an Account with ARCC

image-20240522-200611.png

Summary

In this workshop we have:

  • How to search for a string within a file.

  • How to find a file.

  • How to redirect the output of a command into a file.

  • How to use pipes to direct the output of one command as the input into another command.


Use the following link to provide feedback on this training: https://forms.gle/6hRPPabA87CWncEu8 or use the QR code below.

Intro to Linux VFS.png