Linux-mkdir command & touch command

& touch command mkdir command
mkdir - create a new directory
format: mkdir [-p] path / name of the new directory
1. Create a new directory in the current directory
2. Create a new directory under a specified directory
3.-p, --parents no error if existing, make parent directories as needed --- recursively create directories

touch - can be used to create a binary file, usage is very simple. Usage: there must be a space between the touch + file name, touch the file name.
[62.234.135.49:root@xlp89 / Home / wangzn49] # mkdir wzn
[62.234.135.49:root@xlp89 / Home / wangzn49] # LS
wzn
[62.234.135.49:root@xlp89 / Home / wangzn49] Touch # test.txt
[62.234.135.49:root@xlp89 / Home / wangzn49] LS #
test.txt wzn

 

 

 

Guess you like

Origin www.cnblogs.com/wangzn/p/12565915.html
Recommended