Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
ZIH
hpcsupport
hpc-compendium
Commits
6b2d0d49
Commit
6b2d0d49
authored
3 years ago
by
Norman Koch
Browse files
Options
Downloads
Patches
Plain Diff
tab to whitespaces
parent
11862722
No related branches found
No related tags found
3 merge requests
!446
docs: Add Jupyter Teaching Example
,
!445
Automated merge from preview to main
,
!405
Resolve "There is nothing about ZSH"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/zsh.md
+15
-15
15 additions, 15 deletions
doc.zih.tu-dresden.de/docs/software/zsh.md
with
15 additions
and
15 deletions
doc.zih.tu-dresden.de/docs/software/zsh.md
+
15
−
15
View file @
6b2d0d49
...
@@ -105,20 +105,20 @@ and it will create it and `cd` into it
...
@@ -105,20 +105,20 @@ and it will create it and `cd` into it
```
bash
```
bash
function
treesizethis
{
function
treesizethis
{
du
-k
--max-depth
=
1 |
sort
-nr
|
awk
'
du
-k
--max-depth
=
1 |
sort
-nr
|
awk
'
BEGIN {
BEGIN {
split("KB,MB,GB,TB", Units, ",");
split("KB,MB,GB,TB", Units, ",");
}
}
{
{
u = 1;
u = 1;
while ($1 >= 1024) {
while ($1 >= 1024) {
$1 = $1 / 1024;
$1 = $1 / 1024;
u += 1
u += 1
}
}
$1 = sprintf("%.1f %s", $1, Units[u]);
$1 = sprintf("%.1f %s", $1, Units[u]);
print $0;
print $0;
}
}
'
'
}
}
```
```
...
@@ -173,7 +173,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
...
@@ -173,7 +173,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
```
bash
```
bash
function
slurmlogpath
{
function
slurmlogpath
{
scontrol show job
$1
|
grep
StdOut |
sed
-e
's/^\s*StdOut=//'
scontrol show job
$1
|
grep
StdOut |
sed
-e
's/^\s*StdOut=//'
}
}
```
```
...
...
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