Top community members
All Wiki Articles Create Wiki Article

Have you ever heard about encyclopedia for code?

What about: Wiki for Code project?

* because I've tried to share code and my solutions on different services and it was removed or I was unwelcomed
   - maybe it wasn't good place, but this one is.

if you think you have solution that can help someone, you are welcome to share this solution - Click here

Bash - create new file under linux command

0 contributions
8 points

1. With touch command:

$ touch path/to/file 
Note: created file will be empty

2. With nano or pico program:

$ nano path/to/file
$ pico path/to/file
Note: After typing data use ctrl^o (ctrl+o) to save file file and ctrl^x (ctrl+x) to close program.

3. With echo and output redirection to file:

$ echo "this is my text that i would like to save to file" > path/to/my/file 

4. With cat program:

$ cat > path/to/my/file
Note: Enter key causes saving of current line. Use ctrl^c (ctrl+c) to close program.
0 contributions

Suggested wiki articles:

Suggested findings

Let's do the work and have some fun
  • Dirask is online IT community for professionals and hobbyist to share their knowledge and help each other in extraordinary easy way. ❤ 💻 🙂
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    we will help you. 👍 ✔ 🦄
Read more