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

create file in linux

#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

PREVIOUS NEXT
Code Example
Shell :: awk pdb format 
Shell :: conda install sentencepiece 
Shell :: gpg to encrypt a file 
Shell :: mark raid drive as removed linux 
Shell :: how to take a screenshot with on raspberry pi 
Shell :: Delete a carpet in linux 
Shell :: raspberry pi remove script from startup 
Shell :: vim error in ubuntu 
Shell :: Delete non empty folder 
Shell :: color picker snap 
Shell :: git add remote via ssh 
Shell :: skript tuske gui 
Shell :: asp.net existing database 
Shell :: bash print fields that begin with string 
Shell :: certbot command 
Shell :: ssh set owner recursive 
Shell :: get-docke 
Shell :: install docker ce on centos 
Shell :: copy everything in a directory linux 
Shell :: Create htpasswd file for nginx (without apache) 
Shell :: vim delete duplicate lines 
Shell :: how to write red text in readme in github 
Shell :: git pull pr 
Shell :: get pid of proccess 
Shell :: Creating a kubernetes service cluster 
Shell :: how to open a iso file in linux 
Shell :: bash float operations 
Shell :: create branch git command 
Shell :: sh how to not store a command in history 
Shell :: windows execute file command 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =