How to create a file with space in linux

How to create a file with space in linux

Question: How do you create a file with space in linux

Answer: To create a file with spaces use quotation symbol(” “) in between the file name.

How to create a file with space in linux

How to create a file with space in linux

To create a file with space in linux use the below command

#cat > “raj kumar”
HI The file name is “raj kumar”
Thank you

How to view the file with space separated in between

To view a file with space separated use the below command
#cat raj\ kumar
HI The file name is “raj kumar”
Thank you

Another Method

#cat “raj kumar”
HI The file name is “raj kumar”
Thank you

How to create a file with space in linux

How to create a file with space in linux using vi editor

Create a file with space separated using vi editor

#vi “linux shell”

Edit and save the file.

How to view a file with space separated in linux using vi editor

To view a file with space separated in linux using vi editor use the below command

#vi “linux shell”

Another Method

# vi linux\ shell




Leave a Reply

Your email address will not be published. Required fields are marked *