Check These Out
From the man page.
lft ? display the route packets take to a network host/socket using one of several layer-4
protocols and methods; optionally show heuristic network information in transitu
-A Enable lookup and display of of AS (autonomous system) numbers (e.g., [1]). This option
queries one of several whois servers (see options 'C' and 'r') in order to ascertain the origin
ASN of the IP address in question. By default, LFT uses the pWhoIs service whose ASN data
tends to be more accurate and more timely than using the RADB as it is derived from the
Internet's global routing table.
-N Enable lookup and display of network or AS names (e.g., [GNTY-NETBLK-4]). This option
queries Prefix WhoIs, RIPE NCC, or the RADB (as requested). In the case of Prefix WhoIs or
RADB, the network name is displayed. In the case of RIPE NCC, the AS name is displayed.
You might want to secure your AWS operations requiring to use a MFA token. But then to use API or tools, you need to pass credentials generated with a MFA token.
This commands asks you for the MFA code and retrieves these credentials using AWS Cli. To print the exports, you can use:
`awk '{ print "export AWS_ACCESS_KEY_ID=\"" $1 "\"\n" "export AWS_SECRET_ACCESS_KEY=\"" $2 "\"\n" "export AWS_SESSION_TOKEN=\"" $3 "\"" }'`
You must adapt the command line to include:
* $MFA_IDis ARN of the virtual MFA or serial number of the physical one
* TTL for the credentials
I use this with cron to timeshift radio programs from a station's live stream.
You will get an error message at the end like "curl: (28) Operation timed out after 10000 milliseconds with 185574 bytes received"; to suppress that but not other error messages, you can append "2>&1 | grep -v "(28)"" to the end of the command.
Add the functions to the .bashrc to make it work
Example: First go to the iso file directory and type:
----------------------------------------------------------------------------------------------------
user@box:~$ miso file.iso
----------------------------------------------------------------------------------------------------
It will put you into a temporary mounting point directory (ISO_CD) and will show the files
You can umount the iso file whatever the directory you are
----------------------------------------------------------------------------------------------------
user@box:~/ISO_CD$ uiso
----------------------------------------------------------------------------------------------------
It wil umount the iso file and remove the temporary directory in your home