Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
it depends :
With GUI which is probably what you want :
use text editor like kate, or similar. you can start them from gui or from terminal line (while in X).
from terminal, you should use the easiest editor you want, probably for windows users will be nano.
I personally use for both ways vim.
also, another editor is emacs.
emacs or vim are very strong editors, google them for more advices.
Terminal:
touch filename - to create a file
To view the file:
cat filename
echo filename
To edit the filename you'll need to use a editor, like:
nano filename
vi filename
vim filename
emacs filename
There are more, but I don't know many CLI text editors cuz I'm in love with vim :$
Hi Friends
Plz Guide: How to I open, create, edit, or view a file in Linux?
You need to be more specific. Is the file an ascii text, binary text file, a media file or other.
From the file Manger
If you're not sure which application to open the file with, just right-click on the file and select open with and a list of applications associated with file types will be shown.
Terminal
If opening/editing files from the terminal, you can try these popular programs.
For ascii and binary text files: vim, nano, emacs, Kate, cat
audio and video files: ffmpeg, ffplay, mplayer, mencoder
images: display, convert
Of course there are many others, but these are the popular ones.
Lot of complex, confusing answers here for a noob. I'll just tell you what I use. If it's a txt file, view with "less", edit with "joe". If it's a multimedia file view with "mplayer". I don't think you're gonna be viewing or editing any binary files since you're a noob -- don't try. The aforementioned apps have to be run from a command line, look in your menu for something like "Terminal" or "Konsole", type in the appropriate command followed by the file name and hit enter. Ctl-h will give you some help in "joe". "q" will quit in "less" and "mplayer". You may have to install mplayer from your repo or install disc(s). A GUI multimedia player is Totem. You'll have to find and download the codecs for these multimedia players to play mp3s or DVDs.
If it's an office file like "somefile.doc" use OpenOffice.org suite of apps, like OpenOffice.Org "Writer", you'll find it in your menu.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.