Virtual Box has two type of network adaptor for NAT features.
- NAT (10.0.3.1 - 10.0.3.254)
- NAT Network (10.0.2.1 - 10.0.2.254)
Both are /24 and having the different functionality and working. Please don't get confused with Network Classes here. This is something Virtual Box implemented...
Using Linux cmd, you can generate password with desired password length:
passwordLength=16 && (cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-$passwordLength} | head -n 1)
Where you can enter the desired passwordLength.
For wget over IPv4 , you can use "-4" argument:
[root@server ~]# wget -4 "google.com"
--2022-07-13 12:30:09-- http://google.com/
Resolving google.com (google.com)... 172.253.115.101, 172.253.115.113, 172.253.115.102, ...
Connecting to google.com (google.com)|172.253.115.101|:80... connected...
@Athin here is your script code :
#!bin/sh
for i in {1..10}
do
mktemp --suffix=.new file$i.XXX
done
getLatestFile=$(ls -Art | tail -n 1)
echo "Last Modified File :" $getLatestFile
chmod 600 $getLatestFile
- Code will create 10 files
- Add Extension ".new" to all the files in a directory...