modify basic filestructure

It's unclear what's 'basic', so `basic/` notes have been mostly moved.
The remainder became `shell/`.
This commit is contained in:
2026-04-20 02:42:41 +02:00
parent c95176c7a9
commit bca5337ac3
23 changed files with 2 additions and 445 deletions

46
shell/ls.md Normal file
View File

@@ -0,0 +1,46 @@
---
title: "ls"
tags: [ "basics" ]
---
Firstly, your `ls` is probably aliased to something.
Check it with:
```sh
alias ls
```
If the prompt shows some alias, then start by removing it:
```sh
unalias ls
```
Now we can begin.
Check the most recently modified file:
```sh
ls -t
```
Reverse this with `tac` to see the file which has been unmodified the longest:
```sh
ls -t | tac
```
Group files by extension:
```sh
ls -X
```
Sort largest files first:
```sh
ls -X
```