Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:other_services:misc [2023-01-08 Sun wk01 20:01] – baumkp | home_server:home_server_setup:other_services:misc [2024-09-28 Sat wk39 20:53] (current) – [Grep finds strings] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
======Commonly used commands and scripts====== | ======Commonly used commands and scripts====== | ||
+ | |||
+ | =====dmesg==== | ||
+ | '' | ||
=====systemd===== | =====systemd===== | ||
*Systemctl related commands: | *Systemctl related commands: | ||
Line 114: | Line 117: | ||
---- | ---- | ||
- | =====man===== | + | =====man |
* '' | * '' | ||
* '' | * '' | ||
Line 192: | Line 195: | ||
Once you're comfortable with using grep to find simple strings as seen above, it can do far more complex tasks. These include but are not limited to: case-insensitive use, more complex patterns (including full regular expressions), | Once you're comfortable with using grep to find simple strings as seen above, it can do far more complex tasks. These include but are not limited to: case-insensitive use, more complex patterns (including full regular expressions), | ||
+ | ====netstat==== | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
=====Sed replaces strings===== | =====Sed replaces strings===== | ||
Line 266: | Line 279: | ||
ss display socket statistics | ss display socket statistics | ||
*'' | *'' | ||
+ | |||
+ | =====pbcopy pbpaste===== | ||
+ | Also see [[https:// | ||
+ | |||
+ | Linux requires the package xsel, '' | ||
+ | Some raw xsel examples: | ||
+ | *'' | ||
+ | *'' | ||
+ | |||
+ | To create the command short cuts: | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | After adjusting bash setting run '' | ||
+ | |||
+ | To function on remote server: | ||
+ | -Check the above setup on the remote sever | ||
+ | -Check X11 forwarding is activated: | ||
+ | - '' | ||
+ | -If not, edit the file to make so, and then run '' | ||
+ | -Lastly, when ssh into system use the -X flag to use X11 forwarding; '' | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | |||
====Home Server Index==== | ====Home Server Index==== | ||
++++Home Server Index|< | ++++Home Server Index|< | ||
Line 294: | Line 333: | ||
---- | ---- | ||
- | <- home_server: | + | <- home_server: |