File management in Unix environment
In Unix environment, you can create a directory with the
mkdir <new_dir> command.
For instance, you can create the directory
images at the root of your system using the command:
You can also create a full list of directories and subdirectories using in 1 comamand using the
mkdir -p /images/sub1/sub2
will create the complete directory hierarchy structure in one single line.
mkdircommand manual is accesible here: mkdir
You can change a file timestamp using the
touch <file> command.
will update the access and modification time of the
hello.txt file. If the file does not already exists on the system, it will be created with an empty content.