Check These Out
Allow to launch nc like a daemon, in background until you still stop it.
You can stop it with kill %1 (jobs method) or kill PID.
The -k option can force nc to listen another connection, but if you use redirection, it will work only one time.
The loop's inside doesn't do anything, but we can imagine to send a message to screen when a connection is established
Suppose you made a backup of your hard disk with dd:
dd if=/dev/sda of=/mnt/disk/backup.img
This command enables you to mount a partition from inside this image, so you can access your files directly.
Substitute PARTITION=1 with the number of the partition you want to mount (returned from sfdisk -d yourfile.img).
Replace the with your URL, for example http://rublacklist.net/12348/ and it will show likes number
In this case searches for where .desktop files are stored. The resulted is a sorted list of the top directories containing such files.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
Can be used for other commands as well, replace rm with ls.
It is easy to make this shorter but if the filenames involved have spaces, you will need to do use find's "-print0" option in conjunction with xargs's "-0" option. Otherwise the shell that xargs uses to execute the "rm" command line will treat the space as a token separator, thereby treating the name as two (or more) names.
Using DynDNS or a similar service not only allows access to your home machine from outside without needing to know what IP the ISP has assigned to it but it also comes in handy if you want to know your external IP address. The only purpose of the sed command is to remove the leading "host.na.me has address " part from the output. If you don't need to discard it you can simply use
$ host $HOSTNAME