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:04] – [Commonly used commands and scripts] 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====== | ||
Line 195: | 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 269: | 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 297: | Line 333: | ||
---- | ---- | ||
- | <- home_server: | + | <- home_server: |