useful:linux-commands
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
useful:linux-commands [2022/08/12 08:19] – created admin | useful:linux-commands [2023/04/13 15:46] – admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Linux Commands ====== | ====== Linux Commands ====== | ||
+ | |||
+ | ===== Installing a GPG key ===== | ||
+ | |||
+ | Example: | ||
+ | |||
+ | wget -O- https:// | ||
+ | |||
+ | Then need to edit the sources.list file to look something like: | ||
+ | |||
+ | deb [signed-by=/ | ||
===== Change permissions for whole directory structure ===== | ===== Change permissions for whole directory structure ===== | ||
Line 15: | Line 25: | ||
Adapt as required. | Adapt as required. | ||
+ | ===== Delete all files with given pattern ===== | ||
+ | |||
+ | find . -name ' | ||
+ | |||
+ | Adapt as required. | ||
+ | |||
+ | ===== Make a change in every file in a directory | ||
+ | |||
+ | sed -i ' | ||
+ | |||
+ | To make the change through a whole directory tree: | ||
+ | |||
+ | find ~/ | ||
+ |
useful/linux-commands.txt · Last modified: 2023/05/19 19:14 by admin