*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit b5297b3e authored by Siegel, Moritz's avatar Siegel, Moritz
Browse files

aftershowedits

parent c49cd217
Branches
No related tags found
No related merge requests found
......@@ -310,6 +310,9 @@ $ cat myfile
$ cat myfile1 myfile2 myfile3 ...
```
Like all text you can redirect the concatenated result to a file with
`">"`.
### Delete
......@@ -328,7 +331,7 @@ $ rm -f myfile # force, beware!
```
### Copy & Move
### Copy & Move & Rename
Type `mv` to **move stuff**.
```{.bash .numberLines startFrom=""}
......@@ -416,24 +419,22 @@ KiB Swap: 0 total, 0 free, 0 used. 52517312
...
```
Type `h` to get **help** within top.
Type `1` within top to watch all **cores**.
Type `h` to get **help** within top: like how to filter for a user.
<!-- ### Top -->
### Top Cores
<!-- Type `1t` within top to watch all **cores**. -->
Type `1t` within top to watch all **cores**.
<!-- ```{.bash .numberLines startFrom=""} -->
<!-- top - 15:59:40 up 55 days, 7:02, 18 users, load average: 2.75, 2.76, 2.87 -->
<!-- Tasks: 541 total, 2 running, 538 sleeping, 1 stopped, 0 zombie -->
<!-- %Cpu0 : 5.6/9.0 15[||||||||||| ] -->
<!-- %Cpu1 : 8.4/15.2 24[||||||||||||||||||| ] -->
<!-- %Cpu2 : 7.3/12.6 20[|||||||||||||||| ] -->
<!-- %Cpu3 : 5.6/11.6 17[||||||||||||| ] -->
<!-- %Cpu4 : 3.3/7.3 11[||||||||| ] -->
<!-- ``` -->
```{.bash .numberLines startFrom=""}
top - 15:59:40 up 55 days, 7:02, 18 users, load average: 2.75, 2.76, 2.87
Tasks: 541 total, 2 running, 538 sleeping, 1 stopped, 0 zombie
%Cpu0 : 5.6/9.0 15[||||||||||| ]
%Cpu1 : 8.4/15.2 24[||||||||||||||||||| ]
%Cpu2 : 7.3/12.6 20[|||||||||||||||| ]
%Cpu3 : 5.6/11.6 17[||||||||||||| ]
%Cpu4 : 3.3/7.3 11[||||||||| ]
```
### Exercise 2
......@@ -885,7 +886,7 @@ Use `if/else` in bash scripts to make quick **yes/no** decisions.
```{.bash .numberLines startFrom=""}
if [ $myvariable == 0 ]
then
emycommand1
mycommand1
elif [ $myvariable == 1 ]
then
mycommand2
......
No preview for this file type
---
author: Markus Hickel, Moritz Siegel
author: Moritz Siegel
title: Linux Primer
institute: VSC Research Center, TU Wien
date: \today
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment