Basic Linux Commands : Quick Reference Guide

Basic Linux Commands : Quick Reference Guide

Table of Contents

Basic Linux Commands: Quick Reference Guide

By executing commands, you can perform all basic and advanced functions. A Linux terminal is used for executing these commands. Terminals are like command prompts on a home computer that lets users interact with the system using commands. The case of the command is important in Linux.

This article will show you the basics of Linux commands: 

     
CommandDescription
lsList directory contents.
catDisplay file’s contents to the standard output device (usually your monitor)
cdChange to directory.
dfDisplay used and available disk space.
duShow how much space each file takes up.
fileDetermine what type of data is within a file.
killStop a process. If the process refuses to stop, use kill -9 pid.
lprSend a print job.
manDisplay the help information for the specified command.
mvRename or move file(s) or directories.
psDisplay a snapshot of the currently running processes.
pwdDisplay the pathname for the current directory.
rmRemove (delete) file(s) and/or directories.
rmdirDelete empty directories.
sshRemotely log in to another Linux machine, over the network. Leave an ssh session by typing exit.
suSwitch to another user account.
tailDisplay the last n lines of a file (the default is 10).
tarStore and extract files from a tarfile (.tar) or tarball (.tar.gz or .tgz).
topDisplays the resources being used on your system. Press q to exit.
whoDisplay who is logged on.
clearClear a command line screen/window for a fresh start.
dateDisplay or set the system date and time.
cpCopy files and directories.
grepSearch files or output for a particular pattern.
lnCreate a shortcut.

 

 

That’s it!

 

 

 

Our goal in writing this article is to give you an overview of basic linux commands and we hope this article has given you a better understanding.

 

 

 

 

Get the most out of learning with VPSie.com

Share on
Facebook
Twitter
LinkedIn
Print