From 8ff4f2f51a6cf07fc33742ce3bee81328896e49b Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Fri, 25 May 2018 23:29:36 +0000 Subject: Fri May 25 23:29:36 UTC 2018 patches/packages/glibc-zoneinfo-2018e-noarch-2_slack14.1.txz: Rebuilt. Handle removal of US/Pacific-New timezone. If we see that the machine is using this, it will be automatically switched to US/Pacific. --- slackbook/html/file-commands-creation.html | 143 ----------------------------- 1 file changed, 143 deletions(-) delete mode 100644 slackbook/html/file-commands-creation.html (limited to 'slackbook/html/file-commands-creation.html') diff --git a/slackbook/html/file-commands-creation.html b/slackbook/html/file-commands-creation.html deleted file mode 100644 index cfbf72050..000000000 --- a/slackbook/html/file-commands-creation.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - -Creation: touch and mkdir - - - - - - - - - - - -
-

10.4 -Creation: touch and mkdir

- -
-

10.4.1 touch

- -

touch(1) is used to change the timestamp on a file. You can -change access timestamps and modification timestamps with this command. If the file -specified does not exist, touch will create a zero length file -with the name specified. To mark a file with the current system time, you would issue -this command:

- - - - - -
-
-% ls -al file1
--rw-r--r--    1 root     root        9779 Feb  7 21:41 file1
-% touch file1
-% ls -al file1
--rw-r--r--    1 root     root        9779 Feb  8 09:17 file1
-
-
- -

There are several options for touch, including options to -specify which timestamp to modify, the time to use, and many more. The online manual page -discusses these in detail.

-
- -
-

10.4.2 mkdir

- -

mkdir(1) will create a new directory. You simply specify the -directory to create when you run mkdir. This example creates the hejaz directory in the current directory:

- - - - - -
-
-% mkdir hejaz
-
-
- -

You can also specify a path, like this:

- - - - - -
-
-% mkdir /usr/local/hejaz
-
-
- -

The -p option will tell mkdir to -make any parent directories. The above example will fail if /usr/local does not exist. The -p option -will create /usr/local and /usr/local/hejaz:

- - - - - -
-
-% mkdir -p /usr/local/hejaz
-
-
-
-
- - - - - -- cgit v1.2.3