Check These Out
This is the most straightforward approach: first regexp limits dictionary file to words with thirteen or more characters, second regexp discards any words that have a letter repeated. (Bonus challenge: Try doing it in a single regexp!)
Prepend text to a file. It doen't need temporary files, ed or sed.
- port 8080 on localhost will be a SOCKSv5 proxy
- at localhost:localport1 you will be connected to the external source server1:remoteport1 and at bind_address2:localport2 to server2:remoteport2
- you will be using only IPv4 and arcfour/blowfish-cbc, in order to speed up the tunnel
- if you lose the connection, autossh will resume it at soon as possible
- the tunnel is here a background process, wiithout any terminal window open
If you have the fdupes command, you'll save a lot of typing. It can do recursive searches (-r,-R) and it allows you to interactively select which of the duplicate files found you wish to keep or delete.
A quick and simple way of outputting the start and end date of a certificate, you can simply use 'openssl x509 -in xxxxxx.crt -noout -enddate' to output the end date (ex. notAfter=Feb 01 11:30:32 2009 GMT) and with the date command you format the output to an ISO format.
For the start date use the switch -startdate and for end date use -enddate.
Shows all block devices in a tree with descruptions of what they are.
This command will replace all the spaces in all the filenames of the current directory with underscores. There are other commands that do this here, but this one is the easiest and shortest.
This command takes an application name as an argument and then it will listen to the tcp traffic and capture packets matching the process Id of the application.
The output shows:
local address / local port / Remote Address / Remote port / State / Owning Process ID
Since systemd-resolved was implemented, add a DNS server have become weirder and harder than before. With this command, you can add a DNS server on-the-fly tied to an specific interface