简体   繁体   中英

creating a file inside of a specific directory using terminal

in terminal is it possible to create a file in a spesific directory without being inside of that folder? for example: 1)create a folder names RESOURCES in the working directory terminal: touch resources 2)now create a file style.css inside of resources folder 2.1. cd resources 2.2 ls
2.3 touch style.css is there way to skip some of the steps?

Yes, just:

$ mkdir resources
$ touch resources/style.css

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM