***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Linux Primer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC Public
Training Materials
Linux Primer
Commits
b5297b3e
Commit
b5297b3e
authored
1 year ago
by
Siegel, Moritz
Browse files
Options
Downloads
Patches
Plain Diff
aftershowedits
parent
c49cd217
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
linux_primer.md
+17
-16
17 additions, 16 deletions
linux_primer.md
linux_primer.pdf
+0
-0
0 additions, 0 deletions
linux_primer.pdf
readme.md
+1
-1
1 addition, 1 deletion
readme.md
with
18 additions
and
17 deletions
linux_primer.md
+
17
−
16
View file @
b5297b3e
...
...
@@ -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
e
mycommand1
mycommand1
elif [ $myvariable == 1 ]
then
mycommand2
...
...
This diff is collapsed.
Click to expand it.
linux_primer.pdf
+
0
−
0
View file @
b5297b3e
No preview for this file type
This diff is collapsed.
Click to expand it.
readme.md
+
1
−
1
View file @
b5297b3e
---
author
:
Markus Hickel,
Moritz Siegel
author
:
Moritz Siegel
title
:
Linux Primer
institute
:
VSC Research Center, TU Wien
date
:
\today
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment