LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-24-2009, 07:53 AM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
how to make a file thru the terminal?


OK, I need to make a menu.lst thru the term in Tinycore-2.0rc1, and I don't know the command?
To make a folder is "mkdir -p /such/an/such"
So, how would I do this?
Thanks.
 
Old 05-24-2009, 07:57 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
If you just want to make an empty file, the touch command would do the trick:

touch /path/to/menu.lst

Otherwise just use a console text editor like nano or vi and save the file.
 
Old 05-24-2009, 08:08 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
An extreemly useful thing is to use cat:

$ cat > /boot/grub/menu.lst <return>
Load of garbage you
want in
the
file
<ctr+d>

Use >> to append to an existing file.
 
Old 05-24-2009, 08:37 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
You guys rock.
I'm trying to make Portable-Tinycore and having issues; tried to do install to portable vhd using this iso(http://www.digitalinfra.co.jp/20090514/tc_save.html) 'cause the reg tinycore kernel locks up with bzImage...anyway, made a menu.lst with nano, tried to install grub to vhd hda1 and succeeded, but at boot up again kernel panic??

so, I got it going good using the iso to boot qemu but not bootable after install to hda1...but I'll get it,thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ubuntu 8.04 Terminal - Can you make the terminal window transparent with a wallpaper? bparkerson04 Linux - Newbie 6 02-17-2009 06:12 PM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 03:13 AM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 09:36 AM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 10:49 PM
ftp a terminal and get file at my terminal suchi_s Programming 1 02-02-2005 07:25 AM


All times are GMT -5. The time now is 12:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration