Basic Linux Commands

Here are some basic Linux commands I think will help beginner users… Obviously if you are a Linux admin you need to know much more. A beginner to Linux should know that these commands are run from a terminal, if you do not know what a terminal is then this post is probably not for you. If you want to know what a terminal is I suggest you GOOGLE it. You should also be aware that these commands are for Red Hat based systems (Red Hat, Cent OS, Fedora Core)

man program-name — this command is short for manual, when you run “man vi” this will display the manual for vi. vi is a text editor in Linux

which name — this command tells you if the specific command is in your path, the path being your environment variables

exit — this will close the terminal or exit the current users session

rpm — Red Hat Package Management

yum — Yellowdog Updater, Modified

whoami — tells you which user you are

ls — list directory contents

cd — change directory

clear — clear screen

history — shows the history for previously executed commands

mkdir directory-name — make a directory

cp — copy a file, directory, etc
cp file1.txt file2.txt

mv — move a file, directory, etc
mv file.txt file1.txt

The above commands are very basic and will help get a user started with Linux/UNIX with the terminal or command line. There are many more commands and I will add/update this post from time to time. If someone thinks I have missed an important command for beginners please let me know and I will be sure to post it!

Leave a Reply

Your email address will not be published. Required fields are marked *