LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Linux Gimux
User Name
Password

Notices


An occasional blog about my recently discovered Linux gems!
Old

File manipulation from the command line

Posted 11-03-2015 at 07:12 AM by myklmar (Linux Gimux)

TEXT COMMANDS

To create file :: 'cat > (file name)'

After pressing Enter, you are not returned to the prompt. Instead, the cursor is placed on the next line, allowing you to enter text into your file. Type your lines of text, pressing Enter after each one.
When you are done, press Ctrl + D to exit the file and return to the prompt.

To verify file creation :: 'ls -l (file name)'

To view file :: 'cat (file name)'

...
LQ Newbie
Posted in Uncategorized
Views 2000 Comments 0 myklmar is offline

  



All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration