Difference between revisions of "Linux - Smart Linux Tricks"
Jump to navigation
Jump to search
m (Tinker moved page Linux - Stupid Smart Linux Tricks to Linux - Smart Linux Tricks) |
|||
| Line 38: | Line 38: | ||
|} | |} | ||
<code>Print</code> may have its own special label on your keyboard. On mine the <code>Print</code> key is labeled <code>PrtSc</code>. | <code>Print</code> may have its own special label on your keyboard. On mine the <code>Print</code> key is labeled <code>PrtSc</code>. | ||
| + | |||
| + | === Testing Network Connectivity === | ||
| + | A handy little script: | ||
| + | #!/bin/bash | ||
| + | |||
| + | if nc -zw1 pfSense 443 | ||
| + | then | ||
| + | echo "We have DNS..." | ||
| + | else | ||
| + | echo "NOPE! No DNS..." | ||
| + | sudo systemctl restart systemd-resolved | ||
| + | exit | ||
| + | fi | ||
| + | __FORCETOC__ | ||
Revision as of 09:40, 10 June 2020
A collection of tips & tricks for using Linux...
Contents
Restart a service[edit | edit source]
sudo service FOOBAR restart
or
sudo systemctl restart FOOBAR.service
Where "FOOBAR" is the name of the service you want to restart...
Taking a screenshot in Mint Cinnamon[edit | edit source]
Here are the default shortcuts. You can customize them in Keyboard Settings, as shown in the image that started this post.
| Action | Shortcut |
|---|---|
| Take a screenshot | Print
|
| Take a screenshot of a window | Alt + Print
|
| Take a screenshot of an area | Shift + Print
|
| Copy screen to clipboard | Control + Print
|
| Copy window to clipboard | Control + Alt + Print
|
| Copy area to clipboard | Shift + Control + Print
|
| Toggle recording desktop | Shift + Control + Alt + R
|
Print may have its own special label on your keyboard. On mine the Print key is labeled PrtSc.
Testing Network Connectivity
A handy little script:
#!/bin/bash if nc -zw1 pfSense 443 then echo "We have DNS..." else echo "NOPE! No DNS..." sudo systemctl restart systemd-resolved exit fi