LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Some Linux command questions (https://www.linuxquestions.org/questions/linux-newbie-8/some-linux-command-questions-703073/)

jacatone 02-08-2009 02:38 AM

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.

r3sistance 02-08-2009 02:45 AM

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".

ronlau9 02-08-2009 04:36 AM

Quote:

Originally Posted by jacatone (Post 3435864)
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

catkin 02-08-2009 12:23 PM

Hello jacatone :-)

Quote:

Originally Posted by jacatone (Post 3435864)
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


All times are GMT -5. The time now is 11:46 AM.