Useful Linux commands for new users, get information about packages.

Posted: June 5, 2017. At: 11:55 PM. This was 4 months ago. Post ID: 4022

A Linux installation contains many useful manual pages that provide much useful information to help you find your way around your Linux file-system. The man hier command will load the hier(7) manual page that contains a full listing of all directories on your Linux system and what their role is in the file-system hierarchy. The man intro command is perfect for a new Linux user wanting to learn the command-line. It will give you a simple primer on the bash shell and useful commands that a Linux user will be using day to day.

The apropos command is used to search the manual pages on the system for a certain keyword. In this case we are searching for tutorials.

localhost% apropos tutorial 
gitcore-tutorial (7) - A Git core tutorial for developers
gittutorial (7)      - A tutorial introduction to Git
gittutorial-2 (7)    - A tutorial introduction to Git: part two
lwptut (3pm)         - - An LWP Tutorial
mdoc.samples (7)     - tutorial sampler for writing BSD manuals with -mdoc
perldebtut (1)       - Perl debugging tutorial
perlootut (1)        - Object-Oriented Programming in Perl Tutorial
perlpacktut (1)      - tutorial on "pack" and "unpack"
perlreftut (1)       - Mark's very short tutorial about references
perlretut (1)        - Perl regular expressions tutorial
perlthrtut (1)       - Tutorial on threads in Perl
perlunitut (1)       - Perl Unicode Tutorial

If you are needing to find out what a command does quickly, then the whatis command will help you. The output shows you what manual page is associated with the certain command.

localhost% whatis ls
ls (1p)              - list directory contents
ls (1)               - list directory contents

I am not sure what use this is but Linux has a quote command that will insert a word in quotes.

[jason@localhost ~]$ quote Supercalifragilisticexpialidocious

The shell-quote command allows you to pass text unmodified through a shell script. Install this by typing: this command on Fedora 25.

[root@localhost jason]# dnf install perl-String-ShellQuote-1.04-19.fc25.noarch

Then type this command to get information on this useful script.

No comments have been made. Use this form to start the conversation :)

Leave a Reply