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 02-08-2009, 03:38 AM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Rep: Reputation: 30
Some Linux command questions


What are the commands to create and remove a plain text document in say gedit? Also, what's the command to remove a program? Thanks.
 
Old 02-08-2009, 03:45 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,177

Rep: Reputation: 107Reputation: 107
Hi, Not sure about gedit commands since I am pretty sure that's the Gnome Text editor so doesn't go so well with command line commands, I use Nano myself, alot of people use vi. To remove a file with CLI, you can use the rm command, will remove any kind of file, with the right options you can even remove directories but people will probably say use rmdir instead since it's "safer" or something... I still way prefer rm -rf to remove entire directories tho.

anyway if you wanted to remove say yen.txt you would do "rm yen.txt".
 
Old 02-08-2009, 05:36 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by jacatone View Post
What are the commands to create and remove a plain text document in say gedit? Also, what's the command to remove a program? Thanks.
Do not know which distro you use , most distro has a package manager to remove programs or a command to do it from the command line
Depending on the distro I use linux text I use Nano Pico kwrite
and so on
 
Old 02-08-2009, 01:23 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Hello jacatone :-)

Quote:
Originally Posted by jacatone View Post
What are the commands to create and remove a plain text document in say gedit? Also, what's the command to remove a program? Thanks.
If you want to create a plain text document using gedit you can use File->New and later File->Save As. If you start gedit without telling it to open a file it automatically does the File->New part for you.

Gedit cannot be used to remove files from the file system, regardless of whether they are plain text, programs, or whatever (excepting when it thinks you are are changing the the same file for more than once).

If you are asking about removing programs generally (nothing to do with gedit) then the answer depends on how the program got there in the first place. If it is something you created yourself you can just remove it both from the command prompt and using a GUI. If the program was installed using some package manager then best to remove it the same way so everything associated is tidied up nicely.

Best

Charles
 
  


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
simple linux command questions herve2001 Slackware 5 02-11-2005 08:44 PM
Linux Command and...Questions chipnuke Linux - Software 1 12-28-2004 11:09 AM
Linux shell command questions BabaKali Linux - Newbie 4 11-09-2004 09:03 PM
Linux command-line web browser questions trollatm Linux - Software 1 12-20-2002 01:17 PM


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