Skip to content

Commit 120602c

Browse files
committed
Various updates
1 parent 9bcc315 commit 120602c

5 files changed

+77
-6
lines changed

Diff for: atop.md

+27
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Then jump forwards and backwards in time with <kbd>t</kbd> and <kbd>T</kbd> resp
2121

2222
Use <kbd>b</kbd> then `16:20` to jump to a specific time.
2323

24+
Hit `?` to bring up the help.
2425

2526
# Sorting processes
2627

@@ -30,6 +31,32 @@ Use <kbd>b</kbd> then `16:20` to jump to a specific time.
3031
N – sort in order of network activity
3132
A – sort in order of most active resource (auto mode)
3233

34+
The `A` sorting is great for drawing attention to the current bottleneck. An `A` will appear next to the column which it has chosen.
35+
36+
# Showing process info
37+
38+
These keys change what data is displayed for each process:
39+
40+
g - generic (default)
41+
c - full command line (helps to differentiate different instances of the same executable)
42+
m - memory
43+
d - disk
44+
n - network
45+
s - scheduling
46+
v - various
47+
e - GPU usage
48+
49+
# Showing other info
50+
51+
Instead of processes, you can display:
52+
53+
u - accumulate process data by user
54+
u - accumulate process data by process name
55+
j - accumulate process data by docker container
56+
y - break process into individual threads
57+
Y - sort the threads in y view
58+
59+
3360

3461
# Sources
3562

Diff for: clear_some_space_on_macos.sh

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ rm -rf ~/.android/avd/*
7878

7979

8080

81+
# Things installed by pip (python's package manager)
82+
#rm -rf ~/.local/lib/python*.*/
83+
84+
85+
8186
# Docker
8287
# Clear stopped containers and caches
8388
docker system prune -f

Diff for: pacman.md

+27-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Installing
22

3+
Search for available packages by name or description: `pacman -Ss <partial_text> | more`
4+
35
Install package: `pacman -S <package_name>`
46

57
Install package and also sync package databases: `pacman -Sy <package_name>`
68

9+
Build (and install with `-i`) your own package from a `PKGBUILD` file: `makepkg -si` (`-s` syncs dependencies)
10+
711
# Updating
812

913
Update lists: `pacman -Sy`
@@ -16,7 +20,8 @@ Although the wiki recommends:
1620

1721
#
1822

19-
Remove a package: `pacman -R <package_name>` (the package_name should **not** include the namespace)
23+
Remove a package (and dependencies): `pacman -Rcns <package_name>` (the package_name should **not** include the namespace) (Adding `-u` or doing just `-Rus` might be safer.) (I believe `-n` removes config and backup files, suitable if you don't intend to reinstall the package again in future.)
24+
Remove a package (leaving dependencies installed): `pacman -R <package_name>`
2025

2126
For faster installs we can use powerpill, which downloads files in parallel.
2227

@@ -25,12 +30,26 @@ Search local package names or descriptions: `pacman -Qs <partial_text>`
2530

2631
See full description of a package: `pacman -Qi <package_name>`
2732

28-
Search for available packages by name or description: `pacman -Ss <partial_text> | more`
29-
30-
Find the package which owns a file: `pacman -Qo <file>`
33+
Find the package which owns a file: `pacman -Qo <file>` ("query owner")
3134

3235
List installed packages: `pacman -Qn`
3336

37+
OK but this is crazy, trying but failing to find vscode:
38+
39+
```
40+
$ pacaur -Q code
41+
visual-studio-code-bin 1.54.2-1
42+
$ pacaur -Q visual
43+
error: package 'visual' was not found
44+
$ pacaur -Qn | egrep '(code|visual)'
45+
... no visual-studio-code-bin ...
46+
$ pacaur -Qs vscode
47+
local/visual-studio-code-bin 1.54.2-1
48+
Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
49+
```
50+
51+
List packages which could be upgraded: `pacman -Sy && pacman -Qu` (note that this updates lists, so you should do a full upgrade before installing individual packages, or risk them not working)
52+
3453
List files in package: `pacman -Ql <package_name>`
3554

3655
List dependencies of an installed package: `pacman -Qi <package_name> | sed -n '/Depends\ On/,/:/p' | sed '$d' | cut -d: -f2`
@@ -39,7 +58,7 @@ List dependencies of a remote package: `pacman -Si <package_name> | sed -n '/Dep
3958

4059
List dependencies of an installed package using pactree: `pactree -u <package_name>`
4160

42-
List reverse dependencies of an installed package using pactree: `pactree -r <package_name>`
61+
List reverse dependencies (why installed) of an installed package using pactree: `pactree -r <package_name>`
4362

4463
List dependencies of an installed package using expac: `expac -S '%r/%n: %D' <package_name>`
4564

@@ -95,6 +114,8 @@ You could also automate the cleaning some pacman hooks: https://www.ostechnix.co
95114

96115
## My update process
97116

117+
This is now implemented in the script `~/bin/update-manjaro`
118+
98119
### Clear caches
99120

100121
We clear caches before making a snapshot.
@@ -209,5 +230,5 @@ Whereas earlier kernels installed more packages
209230
- linux58-nvidia-430xx 430.64-18 (linux58-extramodules)
210231
- linux58-virtualbox-host-modules 6.1.14-6 (linux58-extramodules)
211232

212-
20210615 - I am currently on 5.10.41-1-MANJARO without nvidia support, but running ok. I haven't tried any games.
233+
20210615 - I am currently on 5.10.41-1-MANJARO without nvidia support, but running ok. Games have been working fine. (Bad North, Borderlands2, Tharsis)
213234

Diff for: vim.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
```
44
:cd %:p:h
55
```
6+
7+
## Paste without reindenting
8+
9+
```
10+
CTRL-R CTRL-O {register}
11+
```
12+
13+

Diff for: vim_use_netrw_as_a_file_tree_sidebar.md

+10
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,13 @@ Then focus your cursor on the target folder, and move the marked files with:
110110

111111
mm
112112

113+
114+
115+
# Editing in fullscreen
116+
117+
If you hit `<Enter>` in netrw to open a file instead of `v` then the file will open in the current window, without splitting. To get back to netrw you can:
118+
119+
:Ex to open netrw "explorer" in the current window
120+
:Vex to open netrw in a sidebar (vertical split)
121+
:Sex to open netrw at the top of the screen (horizontal split)
122+

0 commit comments

Comments
 (0)