A complete list of GNU/Linux commands.
exit
➜ End session, ie shell
(more help typing man sh
or
man csh
)logout
➜ Logout, ie log off the current session, but only in
C shell
and bash shell
passwd
➜ Change our user password
rlogin
➜ Log in securely to another Unix/Linux
ssh
segura Secure session, comes from secure shell
, and allows
us to login to a server via ssh
protocolslogin
➜ Safe Version of rlogin
yppasswd
➜ Change our user password
on yellow pages
mail
➜ Send and receive emailsmesg
➜ Allow or deny terminal messages and talk requests
pine
➜ Another way to send and receive emails, a quick and
convenient tooltalk
➜ Talk to other users who are currently logged inwrite
➜ Write to other users who are currently logged in
apropos
➜ Finds commands by keyword searchfind
➜ Find files, such as
find . -name *.txt -print
find . -name *.txt -print
, for
searching text files among current directory filesinfo
➜ Launches the information explorerman
muito Very complete manual, looks for information about all
the commands we need to know, such as man find
whatis
➜ Describes what a given command iswhereis
➜ Find the man page
, source code, or binary files for a
given program.emacs
screen-oriented
text editorpico
➜ screen-oriented
text editor, also called nano
sed
➜ stream-oriented
text editorvi
➜ full-screen
text editorvim
➜ Improved full-screen
text editor
cd
➜ Change current directory, such as cd diretoria
, cd ..
,
cd /
chmod
➜ Change protection of a file or directory, such as
chmod 777
, similar to MS-DOS
attrib
chown
➜ Change the owner or group of a file or directory comes
from change owner
chgrp
➜ Change the group of a file or directorycmp
➜ Compare two filescomm
➜ Select or reject lines common to two selected filescp
➜ Copy files such as MS-DOS
copy
crypt
➜ Encrypt or Decrypt files ( CCWF
only)diff
➜ Compare the contents of two ASCII
files.file
➜ Determines the file typegrep
➜ Searches for a file by default, being a very useful and
used filter, for example a
cat a.txt | grep hello
cat a.txt | grep hello
will show us only
the lines of the a.txt file that contain the word “hello”gzip
➜ Compress or expand filesln
➜ link
to a filels
➜ List the contents of a directory, similar to the dir
command in MS-DOS
lsof
➜ Lists open files, comes from list open files
mkdir
➜ Create a board, come from make diretory”
mv
➜ Move or rename files or directoriespwd
➜ Show us the full path of the board we are in at any given
time, ie pathname
quota
➜ Show us disk usage and limitsrm
➜ Delete files, come from remove
, and similar to del
command in MS-DOS
, be careful with rm
* command as it deletes
everything without default confirmationrmdir
➜ Delete directories, come from remove diretory
stat
➜ Shows the state of a file, useful for knowing for example
the time and date of last access to itsync
fl flush
file system buffers
, synchronize data on disk
with memory, ie write all data in memory buffers
to disksort
➜ Sort, merge or compare text and can be used to extract
information from text files or even to sort data from other commands
such as listing files sorted by nametar
➜ Create or extract files, often used as a file backup or
compression programtee
➜ Copy input
to standard output
and other filestr
➜ Translate charactersumask
➜ Changes default file protectionsuncompress
➜ Restore a compressed fileuniq
➜ Report or delete repeated lines in a filewc
➜ Count lines, words and even characters in a file
cat
➜ Shows the contents of a file, such as the MD-DOS
type
command, and is also
cat a.txt b.txt > c.txt” para juntar o arquivo a.txt e b.txt num único de nome c.txt
used to concatenate files, such as making
cat a.txt b.txt > c.txt” for merge file a.txt e b.txt in a only name c.txt
cat a.txt b.txt > c.txt” for merge file a.txt and b.txt in a only name c.txt
fold
➜ Shortens, ie fold
long lines to fit output
devicehead
➜ Shows the first lines of a file, such as with
head -10 a.txt
, or used as a filter to show only the first x
results of another command.lpq
➜ Examine printer spooling queue
lpr
➜ Print a filelprm
➜ Remove jobs
from printer spooling queue
more
➜ Shows the contents of a file, but only one screen at a
time, or even output
from other commands, such as
ls | more
ls | more
less
➜ Works like more
, but with fewer features
, fewer
features and potential uses.page
➜ Works similar to more
command, but displays screens
reversed to more
commandpr
➜ Pages a file for later printingtail
➜ works in reverse of the head
command, shows us the last
lines of a file or even the output
of another command when used as
a filterzcat
➜ Show us a compressed filexv
➜ Used to display, print or even manipulate imagesgv
➜ Display ps
and pdf
filesxpdf
➜ Display pdf
files, use gv
ftp
➜ Comes from file transfer protocol
, and allows us, using
the ftp
file transfer protocol
, to transfer files between
multiple hosts
on a network, such as uploading to an ftp
server
to upload or pull files
rsync
➜ Quickly and flexibly synchronizes data between two
computersscp
➜ rcp
secure versionnetstat
➜ Shows network statusrsh
➜ Run a shell
on other UNIX
systemsssh
➜ rsh
secure versionnmap_port-scan
➜ to view open ports on a given host
ifconfig
➜ View our machine ips
, among other ips
related
functionsping
➜ ping
a particular host
, ie send icmp
packets to a
given host
and measure response times, among other thingskill
➜ Kills a process, such as kill -kill 100
or kill -9 100
or kill -9 %1
bg
➜ Put a suspended process in the background
fg
➜ Unlike bg
, fg
brings back a process to the foreground
jobs
➜ Allows us to view running jobs
, when we run a
background
application, we can see this job
with this command,
and end it with a kill -9 %1
command, if it’s job
number 1, for
exampletop
➜ List the processes that most cpu
use, useful for checking
which processes are causing excessive memory usage, and how much
percentage of cpu
each uses at any given time.^y
➜ Suspend process on next input
request^z
➜ Suspend current process
clock
➜ Sets the processor timedate
➜ Displays the date and timedf
➜ Displays a summary of free disk spacedu
➜ Displays a summary of disk space usageenv
➜ Display environment variablesfinger
➜ Search user informationhistory
➜ Lists the last commands used, very useful to remember
also which commands were used to do a certain action in the past or
what was done at a certain time.last
➜ Indicates last user login
lpq
➜ Examine the spool queue
manpath
➜ Shows the search path
for man
command pagesprintenv
Print environment variablesps
➜ List the list of running processes, useful to know the pid
of a process to send it below with the kill
command, among other
thingspwd
➜ Show us the full path of the board we are in at any given
time, ie pathname
set
➜ Set session variables, ie shell
, C shell
, bash
or
ksh
spend
➜ List ACITS UNIX
costs to datetime
➜ Measure program execution timeuptime
➜ Tell us how long the system has been up, when it was
turned on and its uptime
w
➜ Show us who is on the system or what command each job
is
runningwho
➜ Show us who is logged inwhois
➜ Internet domain directory service, lets us know
information about certain domains on the Internet, when a domain was
registered, when it expires, etc.whoami
➜ Tell us who owns the shell
abiword
➜ Open Source
Word Processoraddbib
➜ Create or modify bibliographic databasescol
➜ Reverts the filter to line feeds
diction
➜ Identify sentences with wordsdiffmk
➜ Mark differences between filesdvips
➜ Convert TeX DVI
files to PostScript
filesexplain
➜ Explains phrases found by diction
programgrap
pic
graphics processor used for elementary data analysis
taskshyphen
➜ Find words with hyphensispell
➜ Check spelling interactivelylatex
➜ Formats text in LaTeX
, which is based on TeX
pdfelatex
➜ For LaTeX
documents in pdf
formatlatex2html
➜ Convert LaTeX
to html
lookbib
➜ Find bibliographic referencesmacref
➜ Create a cross-reference listing nroff/troff
macro
filesndx
➜ Create an index page for a document.neqn
➜ Formats math with nroff
nroff
➜ Formats text for simple display.pic
➜ Produces simple images for troff input
psdit
➜ Filters output
troff
for Apple LaserWriter
ptx
➜ Create permuted indexing but not CCWF
refer
➜ Insert references from bibliographic databasesroffbib
run off
a bibliographic databasesortbib
➜ Sort a bibliographic databasespell
➜ Spelling errorsstyle
➜ Analyzes the surface characteristics of a documenttbl
➜ Format tables for nroff/troff
tex
➜ Formats texttpic
➜ Convert pic source
files into TeX
commandswget
➜ Allows us to download full web pages with all files easily
and non-interactively, without requiring user presence, respecting
the robots.txt
file.html2ps
➜ html
to ps
converterlatex2html
LaTeX
to html
Converterlynx
➜ Text mode based web
browser, ie a web browser
that
allows us to open all kinds of pages by viewing only the text and
links
, not seeing the images, and therefore quite fast, but it
requires practice to be handlednetscape
➜ Netscape
web
Browsersitecopy
➜ Application that allows us to easily and remotely
maintain web sites
weblint
html
syntax and style weblint
Thanks for reading!