Need help with this question
Go to this existing directory "/var/log", create a log file called "texas.log". Make the following entries in the file and save it:
Dallas Austin Houstin can some one help with this question. |
Welcome to LQ! We'd very much like to help, but your current thread makes that difficult. Please visit http://www.linuxquestions.org/questi...#faq_lqwelcome for some additional information on how you can help us help you. If you have any questions or need additional clarification, just let us know.
|
Thanks , the question is in existing directory " /var/log " create a log file call texas.log include the following entries in the file, dallas,austin,houstin and safe it .how do i go about the commands to this , creating the file ,and making the entries in the file and safe it.
|
i would run:
Code:
vi /var/log/texas.log |
might need to be root or sudo in terminal to write to var maybe?
Code:
harry@biker1:~$ cat /var/log/texas.log |
Is this homework by any chance? Can you tell us what you have tried so far and where you got stuck.
jdk |
...or even
Code:
echo "Dallas\nAustin\nHoustin" >> texas.log |
Thanks to you all, i think i got a lead.
i did ... cd /var/log ls touch texas.log ls but where i got real lost is to make the entries dallas,austin ,houstin in the file created. Thanks for the lead will try to do it again. |
Code:
vi /var/log/texas.log Do you know how to exit and save a file in vi? |
Quote:
This sounds like it's homework... |
All times are GMT -5. The time now is 04:00 PM. |