0% found this document useful (0 votes)
76 views

Common Linux Commands - For Dummies

Uploaded by

CatalinUrsu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

Common Linux Commands - For Dummies

Uploaded by

CatalinUrsu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Common Linux Commands - For Dummies Page 1

Advertisement

FirePlotter A real-time bandwidth monitor for Cisco and FortiNet firewalls www.fireplotter.com

Certified ScrumMaster Led by Joe Little Cluj. June 18-20. www.LeanAgileTraining.com

Rich Text Editor Control WinForms Word Processing and Export DOC, PDF, HTML, OOo, RTF. www.devexpress.com

Common Linux Commands


By Richard Blum
Part of the Linux For Dummies Cheat Sheet
Open-source Linux is a popular alternative to Microsoft Windows, and if you choose to use
this low-cost or free operating system, you need to know some basic Linux commands to
make your system smoothly. The most common Linux commands are shown in this table.

Command Description
cat [filename] Display file’s contents to the standard output device (usually
your monitor).
cd /directorypath Change to directory.
chmod [options] mode Change a file’s permissions.
filename
chown [options] Change who owns a file.
filename
clear Clear a command line screen/window for a fresh start.
cp [options] source Copy files and directories.
destination
date [options] Display or set the system date and time.
df [options] Display used and available disk space.
du [options] Show how much space each file takes up.
file [options] filename Determine what type of data is within a file.
find [pathname] Search for files matching a provided pattern.
[expression]
grep [options] pattern Search files or output for a particular pattern.
[filesname]
http://www.dummies.com/how-to/content/common-linux-commands.html 15.04.2012 1:43:39 AM
Common Linux Commands - For Dummies Page 2

kill [options] pid Stop a process. If the process refuses to stop, use kill -9 pid.

less [options] [filename] View the contents of a file one page at a time.
ln [options] source Create a shortcut.
[destination]
locate filename Search a copy of your filesystem for the specified filename.
lpr [options] Send a print job.
ls [options] List directory contents.
man [command] Display the help information for the specified command.
mkdir [options] directory Create a new directory.
mv [options] source Rename or move file(s) or directories.
destination
passwd [name Change the password or allow (for the system administrator)
[password]] to change any password.
ps [options] Display a snapshot of the currently running processes.
pwd Display the pathname for the current directory.
rm [options] directory Remove (delete) file(s) and/or directories.
rmdir [options] directory Delete empty directories.
ssh [options] user@ Remotely log in to another Linux machine, over the network.
machine Leave an ssh session by typing exit.

su [options] [user Switch to another user account.


[arguments]]
tail [options] [filename] Display the last n lines of a file (the default is 10).
tar [options] filename Store and extract files from a tarfile (.tar) or tarball (.tar.gz or
.tgz).
top Displays the resources being used on your system. Press q to
exit.
touch filename Create an empty file with the specified name.
who [options] Display who is logged on.

Dummies Recommends From Around the Web

Linux For Dummies Why Does My Dog... Walk in a Circle


Before Lying Down? (Vetstreet)
Linux All-in-One For Dummies
http://www.dummies.com/how-to/content/common-linux-commands.html 15.04.2012 1:43:39 AM
Common Linux Commands - For Dummies Page 3

Useful Commands in Ubuntu Linux Bill Gates Just Bought $571 Million of
This Stock (StreetAuthority)
Decorating Windows with the Curtains
and Drapes 7 inventors killed by their inventions
(Mother Nature Network)
Repairing Stains, Nicks, and Scratches
in Hardwood Floors 4 Herbs That Get Rid of Headaches
[?] (RealAge)
10 Quotes to Provide Instant Motivation
(Moneyning.com)
4 Truths About Women No Man Should
Ever Forget (MadeMan)
[?]

Copyright © 2012 & Trademark by John Wiley & Sons, Inc. All rights reserved.

http://www.dummies.com/how-to/content/common-linux-commands.html 15.04.2012 1:43:39 AM

You might also like