- Innumerate though the file type you want to rename
- Pipe the result to Rename-Item Rename the files with a suffix () and add a 4 digit tag
$i = 1
Get-ChildItem *.jpg | %{Rename-Item $_ -NewName ('1000100_{0:D4}.jpg' -f $i++)}
- An alternative to using cron. This method allows a one-off task to be scheduled for a certain time.
echo "ls -l" | at midnight
- Mount a folder or filesystem using SSH
sshfs name@server:/path/to/folder /path/to/mount/point
- Add a prifix in to filenames bulk
rename 's/^/prefix/' *
- Set an audible alarm when a IP comes online - realy works
ping -i 60 -a IP_address
- List active connections and the number using NETSTAT - Linux only
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
- Remove all but a certain file (in a directory)
rm -f !(dontremove_filename.txt)
- List apps that are connected to the intenet at the moment
lsof -P -i -n | cut -f 1 -d " "| uniq | tail -n +2
- Convert uppercase files to lowercase files - bulk
rename 'y/A-Z/a-z/' *
- Quick and live ssh network throughput test. Might need to install PV
pv /dev/zero|ssh $host 'cat > /dev/null'
- All IPS connected to the current machine
netstat -lantp | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort -u
- Copy a file with progress bar and save hash to a seperate file (You can add this to a loop for multiple files). Might need to install PV
pv file.iso | tee >(sha1sum > file.sha1) > file-copy.txt
- Create requirement.txt file on a python venv
pip3 freeze > requirements.txt