LinuxQuestions.org
Help answer threads with 0 replies.
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 11-02-2012, 01:29 PM   #1
Mekkhamek
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Smile Noob question: 'command not found'


Hi people

As the first step of installing a program with the aid of terminal, I paste 'sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts'

it asks me for my administrator password, I put that in, and then get

'sudo: /Applications/TextEdit.app/Contents/MacOS/TextEdit: command not found'

Next I am supposed to paste a bunch of text between 127.0.0.1 localhost and 255.255.255.255 broadcasthost, if I just go ahead and paste the stuffs every line says 'command not found'

wut shud i do?
 
Old 11-02-2012, 01:56 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Mekkhamek View Post
...
the first step of installing a program with the aid of terminal, I paste
Code:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
Are you using a Mac?

Code:
sudo whereis TextEdit
and that output, possibly
Code:
sudo whereis textedit
 
Old 11-02-2012, 02:06 PM   #3
Mekkhamek
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
yes i'm using a mac.

when i type that in i just get
Code:
localhost:~ myname
 
Old 11-02-2012, 03:10 PM   #4
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
is textedit the name of your file? And why do you leave space between Textedit and /etc/hosts

What Text editor do you have installed in your computer?
Is this a Homework exercise?
 
Old 11-03-2012, 10:30 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
terminal >
Code:
sudo find `pwd` / -name TextEdit -type f
 
Old 11-03-2012, 07:06 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
??????
What is it you are doing ???????

trying to USE the Apple Mac text editor ON A LINUX install
to edit the host file ????????

you do not run Apple programs nor Microsoft programs on a linux OS

please read
"how to ask a question "
http://www.linuxquestions.org/linux/...Ask_a_Question
 
Old 11-07-2012, 07:22 PM   #7
Mekkhamek
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
...

Last edited by Mekkhamek; 11-07-2012 at 07:50 PM. Reason: nvm
 
Old 11-07-2012, 07:49 PM   #8
Mekkhamek
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
heyyyy i figured it out, thanks anways. Textedit was not in applications it was just somewhere random. Herp derp have a nice day
 
  


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
Question about PATH and Command Not Found Imyrryr Slackware 20 05-24-2010 06:44 AM
noob question - how to change the display resolution in command line mode ucm Debian 1 07-25-2008 01:00 PM
(noob) ? about "command not found" in SW 200mg Slackware 2 06-17-2007 07:01 PM
question about java command not found bbmak Linux - Software 3 10-02-2005 01:23 PM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM

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

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