LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i am new (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-new-634125/)

AmitThakur 04-09-2008 04:32 AM

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

pwc101 04-09-2008 04:52 AM

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.

XavierP 04-09-2008 04:53 AM

Hi and welcome to LQ. You need the touch command - this will create an empty file.

ehawk 04-09-2008 01:21 PM

http://linux.ittoolbox.com/groups/te...ommand-1379865

prad77 04-09-2008 03:35 PM

You can create files with cat command.

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

Gentoo

AmitThakur 04-09-2008 11:39 PM

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 (Post 3116128)
You can create files with cat command.

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



All times are GMT -5. The time now is 02:21 AM.