Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

One command to create a directory and file inside it linux command

$ echo 'mkfile() { mkdir -p "$(dirname "$1")" && touch "$1" ;  }' >> ~/.bashrc
$ source ~/.bashrc
$ mkfile /your/directory/yourFile.txt
Comment

with which command make file and directory in linux

$ ls -FR thesis
chapter_1/

thesis/chapter_1:
section_1/

thesis/chapter_1/section_1:
subsection_1/

thesis/chapter_1/section_1/subsection_1:
Comment

PREVIOUS NEXT
Code Example
Shell :: diff between two files 
Shell :: git create branch 
Shell :: github to gitlab 
Shell :: cors package install npm 
Shell :: git add . 
Shell :: how to start kurento medial server in linux 
Shell :: packet tracer 2.7.1 Full Config P2P-3 Router 
Shell :: vba run shell command with arguments 
Shell :: set up vm arch 
Shell :: Install/Deploy Sourcegraph with Docker 
Shell :: play vlc as root kali 
Shell :: how to get data from pc to cluster 
Shell :: Install Deno - Scoop (Windows) 
Shell :: open a file from the integrated terminal in Visual Studio Code? 
Shell :: GPG error: https://packages.sury.org/php buster InRelease: 
Shell :: How to ssh to multiple servers and run commands 
Shell :: ubuntu extract img.xz 
Shell :: Error: No Homebrew ruby 2.6.8 available for arm64 processors! 
Shell :: thinderbird download linux mint 
Shell :: how to open .mbox file ubuntu 
Shell :: lalla 
Shell :: install spectral pytohn 
Shell :: pip install -U "yarl<1.2" 
Shell :: i see my path has a lot of unwanted things. how to reset in command line 
Shell :: iiana github 
Shell :: Install Lumen CSV Reader package from Nuget Package Manager in Visual Studio 
Shell :: pip uninstall virtualenv bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory 
Shell :: snaps in ubuntu take a lot of space 
Shell :: How to reload a service with systemctl command 
Shell :: error target not found artix-arch linux-support 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =