LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-10-2013, 05:06 PM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
File creation commands not working


Hi geeks ;

Following commands are not working. Help me.
pico
ued
ed


PHP Code:
pico samp.sh
bash
picocommand not found

ued samp.sh
bash
uedcommand not found

ed sample.sh
sample
.shNo such file or directory 
vim and vi command is working fine.

Thanks !!
 
Old 01-10-2013, 05:32 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
then install the other editors. they are not file creation commands, they are editors just like vim and vi.
 
Old 01-16-2013, 02:43 AM   #3
spazticclown
Member
 
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
You will need to install one of these editors from either the command line or the graphical package manager. What distribution are you running?

In Fedora/CentOS/RedHat:
Code:
# yum install ed
Should get you started
In Ubuntu etc:
Code:
# apt-get install ed
 
1 members found this post helpful.
Old 01-16-2013, 03:21 AM   #4
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Hi,
pico and ued must be installed.
About ed, i see this error: "sample.sh: No such file or directory".
You should try to use "ed" with a existing file.
 
2 members found this post helpful.
Old 01-16-2013, 09:01 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,254
Blog Entries: 16

Rep: Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120
If you want to create a an empty file, you can use "touch."
 
Old 01-16-2013, 09:24 PM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,363

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by thiyagusham View Post
Hi geeks ;

Following commands are not working. Help me.
pico
ued
ed


PHP Code:
pico samp.sh
bash
picocommand not found

ued samp.sh
bash
uedcommand not found

ed sample.sh
sample
.shNo such file or directory 
vim and vi command is working fine.

Thanks !!
It seems vim package is installed and the ed,ued,pico are not installed in your system. These all are the editors .
 
Old 01-17-2013, 03:25 AM   #7
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
If you want to create a an empty file, you can use "touch."
Or
Code:
> filename
 
Old 01-18-2013, 01:06 AM   #8
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 836

Rep: Reputation: 200Reputation: 200Reputation: 200
Note that in "ed" the error message is different. It says
Quote:
sample.sh: No such file or directory
whereas in the other two it says
Quote:
bash: pico: command not found
or
Quote:
bash: ued: command not found
So "ed" exists on your system. To create a new file, call it without the file name and use the "f" command (I think) within "ed" to name the file. Finally "wq" it. After-all "ed" is the basis for "vi". What I mean is that if you use "vi", youare in fact using "ed" like commands.

"pico" is an old editor within pine and it's gnu version is "nano". "nano" may be available or can be downloaded.

Where did you hear about ued? Do you mean 'sed"?

OK

Last edited by AnanthaP; 01-18-2013 at 01:08 AM.
 
1 members found this post helpful.
Old 01-18-2013, 04:05 PM   #9
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by AnanthaP View Post
Note that in "ed" the error message is different. It says whereas in the other two it says or

So "ed" exists on your system. To create a new file, call it without the file name and use the "f" command (I think) within "ed" to name the file. Finally "wq" it. After-all "ed" is the basis for "vi". What I mean is that if you use "vi", youare in fact using "ed" like commands.

"pico" is an old editor within pine and it's gnu version is "nano". "nano" may be available or can be downloaded.

Where did you hear about ued? Do you mean 'sed"?

OK
run the command,
whereis ed
whereis pico
whereis ued

or

which ed
which pico
which ued

If command did not find the answer then install the ed,ued and pico.
If you got the relative path by these command then use relative path to execute the task .
 
1 members found this post helpful.
  


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
[SOLVED] Prevent subdirectory creation while allowing file creation bweddell Linux - Security 5 07-31-2011 08:54 PM
Working with FAT creation date. BigglesPiP Linux - Software 1 10-24-2009 05:10 AM
changing default file permissions upon file creation ceci2 Linux - Newbie 7 10-01-2009 07:27 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
two commands in a script file not working toastermaker Programming 6 01-04-2004 07:15 AM


All times are GMT -5. The time now is 06:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration