LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2015, 09:22 AM   #1
nwtotech
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 07-27-2015, 09:36 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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.
 
Old 07-27-2015, 09:45 AM   #3
nwtotech
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-27-2015, 09:48 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i would run:
Code:
vi /var/log/texas.log
type in the lines i want. then save it.
 
Old 07-27-2015, 10:06 AM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,144
Blog Entries: 21

Rep: Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482
might need to be root or sudo in terminal to write to var maybe?

Code:
harry@biker1:~$ cat /var/log/texas.log
Pecos
Balmorreh
Terlingua
Austin
Dallas
Houstin
Luckenbach
Uvalde
Presidio
Ft Hancock
Esperanza
##more to come at a location near you##
harry@biker1:~$
 
Old 07-27-2015, 10:42 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Is this homework by any chance? Can you tell us what you have tried so far and where you got stuck.
jdk
 
Old 07-27-2015, 01:04 PM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
...or even
Code:
echo "Dallas\nAustin\nHoustin" >> texas.log
 
Old 07-27-2015, 01:25 PM   #8
nwtotech
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-27-2015, 02:07 PM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
vi /var/log/texas.log
do the needful and exit vi.
Do you know how to exit and save a file in vi?
 
Old 07-27-2015, 02:52 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by nwtotech View Post
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.
It's a text file, so open it up in a text editor and add whatever you want. vi, pico, nano, gedit, kate...all are text editors, pick one, there are tons of choices.

This sounds like it's homework...

Last edited by suicidaleggroll; 07-27-2015 at 02:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GPL question (Version 2, June 1991) - physical media availability question LicenseQuestions Linux - Newbie 1 12-01-2012 06:34 PM
basic html question - download link to files on my webpage question Davno Linux - Server 5 12-25-2009 07:24 AM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:32 PM.

Main Menu
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