Difference between revisions of "Introduction to Linux in HPC/Various tips"
Introduction to Linux in HPC/Various tips
Jump to navigation
Jump to search
m (Tweak page sorting) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Tutorials]]<nowiki /> | + | [[Category:Tutorials|Various Tips for Working with Linux]]<nowiki /> |
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:Various Tips for Working with Linux}}<nowiki /> |
{{Syllabus Introduction to Linux}}<nowiki /> | {{Syllabus Introduction to Linux}}<nowiki /> | ||
__TOC__ | __TOC__ |
Latest revision as of 16:27, 4 December 2020
Tutorial | |
---|---|
Title: | Introduction to Linux in HPC |
Provider: | HPC.NRW
|
Contact: | tutorials@hpc.nrw |
Type: | Multi-part video |
Topic Area: | HPC Platforms |
License: | CC-BY-SA |
Syllabus
| |
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.
Video
Quiz
Does
df
show the size of a given file?
What does
ln -s /tmp .
do?
What is the
watch
command used for?
What are
sed
or awk
used for?
How will you find a specific command in history ? HINT: use grep with history, how to use it?
How can you compare two files and display a list of the difference? HINT:
man diff
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.
Answer: | |
There are multiple ways to find out the number of CPUs and amount of memory on Linux computer. the number of CPUs. 1. CPU(s): 40
On-line CPU(s) list: 0-39
Brief description: $ grep -c processor /proc/cpuinfo
40
As can be seen, there are 40 CPU cores in this computer. the amount of memory 1. 196698736 K total memory
4982596 K used memory
$ grep Mem[TF] /proc/meminfo
MemTotal: 196698740 kB
MemFree: 113479460 kB
As can be seen, MemT and MemF are matched by MemTotal and MemFree, respectively. The total amount of memory in the computer is 196 GB and there are 113 GB are freely available. |
2. Permanently change your vim color scheme.
Answer: |
Your personal vim configuration file is ~/.vimrc. In this file you can change the vim color scheme permanently. For example, the following setting uses the desert color scheme:
|