Linux Introduction: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
= Useful commands =
= Useful commands =


== Change the current group ==
== Change current Unix group ==


If you are a member of several Unix groups on a system, you default group is normally your personal group with the same name as your user name.
If you are a member of several Unix groups on a system, you default group is normally your personal group with the same name as your user name.

Revision as of 03:53, 5 August 2021

This page provides an introduction to the elements of working at the Linux command line and Bash scripting that are most relevant for users of the computing clusters managed by Research Computing Services (RCS) as well as Compute Canada. Working at the command line is an extremely valuable skill for anyone who handles and processes large collections of data. (Nature - Five Reasons Why Researchers Should Learn to Love the Command Line) The command line is a text-only interface that emphasizes automation of complex tasks through simple scripts or short sequences of commands. Relative to working with a graphical interface, it is somewhat less intuitive and takes some time to learn. However, with a few days of work it is possible to become proficient enough to be comfortable working on HPC systems.


Further Reading

A free book that provides a fairly illuminating dive into working at the Linux command line and Bash scripting. The main topics required for working on RCS clusters are covered in the first 4 chapters, although the chapters on shell scripting are also very useful.

Useful commands

Change current Unix group

If you are a member of several Unix groups on a system, you default group is normally your personal group with the same name as your user name. As a result, newly created files will normally have this group ownership. Sometimes you may want to force the new files to have a different group ownership. It can be done by using the

$ newgroup groupname

command.