NEWS: Total Picture Views: 147068 | Total Article Views: 155681 | Top 5 Most Popular Article: 1. Am I Stuck Algorithm with Becker Robot | 2. How to read a JSON and work with it | 3. PickUpThings with Becker Robot | 4. Encrypted Data GUI (Download .Zip) | 5. Create Wall and Things with Becker

How to Create and Read file Bash

Description:

In this example I will be showing you how to create file and read them with linux command.

Code:

//How to create a file in Linux:
cat > nameOfTheFile.extension


//How to close editing a script:
Ctrl + D


//How to run a script:
cat nameOfTheFile.extension
//Or
nameOfTheFile.extension

//Change right
chmod 751 nameOfFile

//mkdir bin
cd bin


//VI command
vi add = edit file add
:wq = quit and save
:q! = quit without saving


//Remove
rm file
Attachments: None

Tags: Linux Create Read File

Total Views: 849

My name is Jean-Mathieu

I created this website so other people could enjoy finding useful stuff easier. If you have any question do not hesitate to contact me.

jean8mathieuCreated on 01/19/15


affiliate_link

Disclosure: We are a website that needs compensation to operate like any other website on the internet.
We may receive consideration for our reviews but we are totally unbiased and do not accept paid reviews or fake reviews claiming to be something they are not.