Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How do you create a file in shell script?

touch NewFile.txt
Comment

create a new file in bash script

touch newfile_1.txt
Comment

bash script create file

touch /file.txt
Comment

how to create file in bash script

to make file in a folder in git bash script we use the command line called touch

 steps to follow 
 1 enter in to that folder 
 2 write  "touch fileName"
 3 press enter
 
 eg i want to create a file called index.js
 touch index.js
 
Comment

PREVIOUS NEXT
Code Example
Shell :: linux find and rename files with text 
Shell :: gitignore specific file 
Shell :: connect to aws ubuntu gui from windows 
Shell :: mongo shell change db 
Shell :: Command of Git Fetch 
Shell :: how to control fan speed of ubuntu laptop 
Shell :: curl parallel requests 
Shell :: create a bootable usb drive ubuntu 
Shell :: search for substring 
Shell :: how to remove package files in linux 
Shell :: shell cd 
Shell :: jq filter by key 
Shell :: crontab mac 
Shell :: Dockerfile RUN cmd before prompt 
Shell :: git create server repository 
Shell :: mountebank docker quick start 
Shell :: repo tool depth 
Shell :: hsp hFP ubuntu "solved" 
Shell :: abort current task mac terminal 
Shell :: git commit -am "make it better" error 
Shell :: instalacion mkweb 
Shell :: Add Gitbash branch name to powershell 
Shell :: surface area of a spherical shell 
Shell :: Zim files from command prompt 
Shell :: Setting File Permission Allow Webserver di linux 
Shell :: SystemError: GPU device not found site:stackoverflow.com 
Shell :: coc.nvim not working after update 
Shell :: install webdav ubuntu 18.04 
Shell :: ssh copy id to remote sever 
Shell :: docker-machine –version 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =