How to View a File in Linux?
Contents Linux and Unix Command to View File Cat Command. Less Command. More Command. Gnome-Open Command or Xdg-Open Command (Generic Version) or Kde-Open...
Contents
Linux And Unix Command To View File
- cat command.
- less command.
- more command.
- gnome-open command or xdg-open command (generic version) or kde-open command (kde version) – Linux gnome/kde desktop command to open any file.
- open command – OS X specific command to open any file.
How do I open a file in Linux terminal?
Part 1 Opening Terminal
- Open Terminal.
- Type ls into Terminal, then press ↵ Enter .
- Find a directory in which you wish to create a text file.
- Type cd directory .
- Press ↵ Enter .
- Decide on a text editing program.
Must Read
How do I find a file in Linux terminal?
To find files in Linux terminal, do the following.
- Open your favorite terminal app.
- Type the following command: find /path/to/folder/ -iname *file_name_portion*
- If you need to find only files or only folders, add the option -type f for files or -type d for directories.