Difference between revisions of "Introduction to Linux in HPC/Various tips"
Introduction to Linux in HPC/Various tips
Jump to navigation
Jump to search
Line 88: | Line 88: | ||
But beware of this permanent change of vim color scheme, because different color schemes may be preferred by different people. The vim color scheme recommended by others may not be the best choice for you. | But beware of this permanent change of vim color scheme, because different color schemes may be preferred by different people. The vim color scheme recommended by others may not be the best choice for you. | ||
|} | |} | ||
+ | |||
+ | |||
+ | <div style='text-align: left;float:left;width:33%;'>{{Clickable button|[ Previous Page]|color=white}}</div> | ||
+ | <div style='text-align: center;float:left;width:33%;'>{{Clickable button|[https://hpc-wiki.info/hpc/Introduction_to_Linux_in_HPC Main Menu Page]|color=white}}</div> | ||
+ | <div style='text-align: right;float:left;width:33%;'>{{Clickable button|[ Next Page]|color=white}}</div> |
Revision as of 17:32, 5 October 2020
Video
Quiz
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
Info: | Please make backups regularly! |
Warning: | Please make backups regularly! |
Exercises in Terminal (slide 137)
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:
|