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 04-09-2008, 04:32 AM   #1
AmitThakur
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Post i am new


hello dear,
7 years ago i did unix(shell scripting, vi edittor,c)
but now i have linux 9.5 in that i have some problems , some of the unix command it does not support like banner,cat(for creating file),cat in linux display the contant of the file but not creat new file.i want what is the substitute of these commands.
i have installed linux on my system and now i am learning the linux.
AMIT THAKUR
 
Old 04-09-2008, 04:52 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
cat can create new files, but to create files, I usually just use touch:
Code:
touch your_file_name
As far as I'm aware, cat has never been for creating files, but for concatenating multiple files together into a single file.

My Slackware 12 installation has banner installed.

Which distribution of Linux do you have installed? Linux 9.5 doesn't mean anything.
 
Old 04-09-2008, 04:53 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Hi and welcome to LQ. You need the touch command - this will create an empty file.
 
Old 04-09-2008, 01:21 PM   #4
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
http://linux.ittoolbox.com/groups/te...ommand-1379865
 
Old 04-09-2008, 03:35 PM   #5
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
You can create files with cat command.

$ cat > file
hello !
press CTRL+D to save file
$ cat file
hello !
$

Gentoo

Last edited by prad77; 04-17-2008 at 03:45 AM.
 
Old 04-09-2008, 11:39 PM   #6
AmitThakur
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
thanks

thanks for helping me i'll try this out today and will come to you with some results.
A M I T
Quote:
Originally Posted by prad77 View Post
You can create files with cat command.

$ cat > file
hello !
press CTRL+D to save file
$ cat file
hello !
$
 
  


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



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

All times are GMT -5. The time now is 04:39 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