Did You Know? netcat is a unix utility which reads and writes data across network connections, using TCP or UDP protocol. It's designed to be a reliable back-end tool that can be used directly or easily driven by other programs and scripts. At the same time, it's a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities. Netcat, or "nc" as the actual program is named, should have been supplied long ago as another one of those cryptic but standard Unix tools.
-m, --mode=MODE set permission mode (as in chmod), not rwxrwxrwx - umask -p, --parents no error if existing, make parent directories as needed
Media
4. Examples
Creating directory in the Linux environment is very simple task. Let's create directory named "dir1":
mkdir dir1
mkdir command can take more arguments. For example we can take two directories with only one command:
mkdir dir2 dir3
mkdir command can also create entire directory tree. By using -p option mkdir will also create parent directories if required:
mkdir -p dir4/dir4.1
By default mkdir creates directory with permissions set by umask. To force mkdir to create directory with different permissions the -m option can be used. For example to create directory with [[chmod | permissions]] 744 we can issue following command: