Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create file in linux

touch <filename>.<extension>
Comment

create file in linux

sudo nano <filename.extension>

Example:
cd /
cd /var/www/html
sudo nano Form.php
Comment

linux make file

touch file1.txt #Create file1.txt
Comment

linux terminal create file

/* only create file */
touch myFile.html

/* create and open to edit */
nano myFile.html
vim myFile.html
Comment

linux create file

#solution 1
touch filename

#solution 2
> filename # or >> filename

#solution 3
cat > filename
Comment

create file linux

//will create test.txt
sudo touch test.txt
Comment

creating new files in linux

// To create a new file run the cat command followed by the redirection operator > and the name of the file you want to create.
// Press Enter type the text and once you are done press the CRTL+D to save the files.
cat > file1.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: What commands would you use to force an overwrite of your local files with the master branch? 
Shell :: git rebase a local branch into my branch 
Shell :: Error: Cannot perform an interactive login from a non TTY device 
Shell :: command to create jpeg in linux 
Shell :: xampp phpmyadmin not found 
Shell :: linux how to execute a file 
Shell :: git clone with branch name command 
Shell :: install k3s on ubuntu 
Shell :: ffmpeg denoise audio 
Shell :: reload terminal mac zsh 
Shell :: how to access the local machine using WSL 
Shell :: git https basic access denied 
Shell :: git update from another branch 
Shell :: fix corrupt pdf command line 
Shell :: install bottom navigation in react native 
Shell :: windows 10 open git bash here 
Shell :: letsencrypt domain fetch /.well-known error 
Shell :: statsmodels logit function 
Shell :: git push origin cannot be resolved to branch 
Shell :: how to turn off mac display 
Shell :: phoenix liveview setup 
Shell :: mv command in linux 
Shell :: pylint 
Shell :: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections 
Shell :: manual of command 
Shell :: syslog-ng[31899]: error processing log message: <111 splunk format 
Shell :: commit to create a customised image 
Shell :: linux cannot upgrade pip 
Shell :: ve-restore-user database only 
Shell :: Pipe script to a remote server 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =