Various Tips for Working with Linux

From HPC Wiki
Introduction to Linux in HPC/Various tips
Jump to: navigation, search

Title: Introduction to Linux in HPC
Provider: HPC.NRW

Type: Multi-part video
Topic Area: HPC Platforms
License: CC-BY-SA

1. Background and History
2. The Command Line
3. Linux Directory Structure
4. Files
5. Text display and search
6. Users and permissions
7. Processes
8. The vim text editor
9. Shell scripting
10. Environment variables
11. System configuration
12. SSH Connections
13. SSH: Graphics and File Transfer
14. Various tips

This video covers a range of miscellaneous topics that are useful, but were not addressed before. For example, there are tools to print the space left on a disk or the recent command history. Other tools regularly execute commands for you or manipulate text. Finally, an overview of common package managers is given.


( Slides as pdf)


Does df show the size of a given file?


What does ln -s /tmp . do?

Create a symbolic link of the current directory in /tmp
Create a symbolic link of /tmp in the current directory named ./tmp
Print a list of files located in /tmp and .

What is the watch command used for?

To open a file of unknown format
To regularly execute a command and see its output
To watch video files

What are sed or awk used for?

Manipulate and process text
Set system configuration settings

How will you find a specific command in history ? HINT: use grep with history, how to use it?

Click and submit to see the answer

How can you compare two files and display a list of the difference? HINT: man diff

Click and submit to see the answer

Warning:  Please make backups regularly! Hard drives can fail on any computer

Exercises in Terminal

1. Find out the number of CPUs and amount of memory you have.
2. Permanently change your vim color scheme. 

<< SSH: Graphics and File Transfer