Todos Os Comandos Básicos de a a Z - Kali

16
Kali Linux Commands Cheat Sheet   T odos os comandos básicos de A a Z em K ali Linux. A apropos : Search Help manual pages (man -k) apt-get : Search for and install software packages (Debian/Ubuntu) aptitude : Search for and install software packages (Debian/Ubuntu) aspell : Spell Checker awk : Find and Replace text, database sort/validate/index B basename : Strip directory and sux from lenames bash : GNU Bourne-Again SHell bc : Arbitrary precision calculator language bg : Send to background break : Exit from a loop builtin : Run a shell builtin bzip2 : Compress or decompress named le(s)

description

Kali Linux Commands CheaSheetTodos os comandos básicos de A a Z em Kali Linux.A•apropos : Search Help manual pages (man -k)•apt-get : Search for and install software packages (Debian/Ubun•aptitude : Search for and install software packages (Debian/Ubu•aspell : Spell Checker•awk : Find and Replace text, database sort/validate/indexB•basename : Strip directory and suffix from filenames•bash : GNU Bourne-Again SHell•bc : Arbitrary precision calculator language•bg : Send to background•break : Exit from a loop•builtin : Run a shell builtin•bzip2 : Compress or decompress named file(s)C•cal : Display a calendar•case : Conditionally perform a command•cat : Concatenate and print (display) the content of files•cd : Change Directory•cfdisk : Partition table manipulator for Linux•chgrp : Change group ownership•chmod : Change access permissions•chown : Change file owner and group•chroot : Run a command with a different root directory•chkconfig : System services (runlevel)•cksum : Print CRC checksum and byte counts•clear : Clear terminal screen•cmp : Compare two files•comm : Compare two sorted files line by line•command : Run a command – ignoring shell functions ••continue : Resume the next iteration of a loop ••cp : Copy one or more files to another location•cron : Daemon to execute scheduled commandsD•crontab : Schedule a command to run at a later time•csplit : Split a file into context-determined pieces•cut : Divide a file into several parts•date : Display or change the date & time•dc : Desk Calculator•dd : Convert and copy a file, write disk headers, boot records•ddrescue : Data recovery tool•declare : Declare variables and give them attributes ••df : Display free disk space•diff : Display the differences between two files•diff3 : Show differences among three files•dig : DNS lookup•dir : Briefly list directory contents•dircolors : Colour setup for `ls’•dirname : Convert a full pathname to just a path•dirs : Display list of remembered directories•dmesg : Print kernel & driver messages

Transcript of Todos Os Comandos Básicos de a a Z - Kali

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 1/16

Kali Linux Commands CheatSheet  Todos os comandos básicos de A a Z em Kali Linux.

A

•apropos : Search Help manual pages (man !"

•aptget : Search #or and install so#t$are pac!ages (%ebian&'buntu"

•aptitude : Search #or and install so#t$are pac!ages (%ebian&'buntu"

•aspell : Spell Chec!er

•a$! : ind and )eplace text* database sort&+alidate&index

,

•basename : Strip director- and sux #rom /lenames

•bash : 01' ,ourneAgain SHell

•bc : Arbitrar- precision calculator language

•bg : Send to bac!ground

•brea! : 2xit #rom a loop

•builtin : )un a shell builtin

•b3ip4 : Compress or decompress named /le(s"

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 2/16

C

•cal : %ispla- a calendar

•case : Conditionall- per#orm a command

•cat : Concatenate and print (displa-" the content o# /les

•cd : Change %irector-

•c#dis! : 5artition table manipulator #or Linux

•chgrp : Change group o$nership

•chmod : Change access permissions

•cho$n : Change /le o$ner and group

•chroot : )un a command $ith a di6erent root director-

•ch!con/g : S-stem ser+ices (runle+el"

•c!sum : 5rint C)C chec!sum and b-te counts

•clear : Clear terminal screen

•cmp : Compare t$o /les

•comm : Compare t$o sorted /les line b- line

•command : )un a command 7 ignoring shell #unctions 8

•continue : )esume the next iteration o# a loop 8

•cp : Cop- one or more /les to another location

•cron : %aemon to execute scheduled commands

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 3/16

•crontab : Schedule a command to run at a later time

•csplit : Split a /le into contextdetermined pieces

•cut : %i+ide a /le into se+eral parts

%

•date : %ispla- or change the date 9 time

•dc : %es! Calculator

•dd : Con+ert and cop- a /le* $rite dis! headers* boot records

•ddrescue : %ata reco+er- tool

•declare : %eclare +ariables and gi+e them attributes 8

•d# : %ispla- #ree dis! space

•di6 : %ispla- the di6erences bet$een t$o /les

•di6 : Sho$ di6erences among three /les

•dig : %1S loo!up

•dir : ,rie;- list director- contents

•dircolors : Colour setup #or <ls=

•dirname : Con+ert a #ull pathname to >ust a path

•dirs : %ispla- list o# remembered directories

•dmesg : 5rint !ernel 9 dri+er messages

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 4/16

•du : 2stimate /le space usage

2

•echo : %ispla- message on screen 8

•egrep : Search /le(s" #or lines that match an extended expression

•e>ect : 2>ect remo+able media

•enable : 2nable and disable builtin shell commands 8

•en+ : 2n+ironment +ariables

•ethtool : 2thernet card settings

•e+al : 2+aluate se+eral commands&arguments

•exec : 2xecute a command

•exit : 2xit the shell

•expect : Automate arbitrar- applications accessed o+er a terminal

•expand : Con+ert tabs to spaces

•export : Set an en+ironment +ariable

•expr : 2+aluate expressions

•#alse : %o nothing* unsuccess#ull-

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 5/16

•#d#ormat : Lo$le+el #ormat a ;opp- dis!

•#dis! : 5artition table manipulator #or Linux

•#g : Send >ob to #oreground

•#grep : Search /le(s" #or lines that match a /xed string

•/le : %etermine /le t-pe

•/nd : Search #or /les that meet a desired criteria

•#mt : )e#ormat paragraph text

•#old : ?rap text to /t a speci/ed $idth.

•#or : 2xpand $ords* and execute commands

•#ormat : ormat dis!s or tapes

•#ree : %ispla- memor- usage

•#sc! : ile s-stem consistenc- chec! and repair

•#tp : ile Trans#er 5rotocol

•#unction : %e/ne unction @acros

•#user : denti#-&!ill the process that is accessing a /le

0

•ga$! : ind and )eplace text $ithin /le(s"

•getopts : 5arse positional parameters

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 6/16

•grep : Search /le(s" #or lines that match a gi+en pattern

•groupadd : Add a user securit- group

•groupdel : %elete a group

•groupmod : @odi#- a group

•groups : 5rint group names a user is in

•g3ip : Compress or decompress named /le(s"

H

•hash : )emember the #ull pathname o# a name argument

•head : Butput the /rst part o# /le(s"

•help : %ispla- help #or a builtin command

•histor- : Command Histor-

•hostname : 5rint or set s-stem name

•icon+ : Con+ert the character set o# a /le

•id : 5rint user and group id=s

•i# : Conditionall- per#orm a command

•i#con/g : Con/gure a net$or! inter#ace

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 7/16

•i#do$n : Stop a net$or! inter#ace

•i#up : Start a net$or! inter#ace up

•import : Capture an ser+er screen and sa+e the image to /le

•install : Cop- /les and set attributes

 D

• >obs : List acti+e >obs

• >oin : Doin lines on a common /eld

•!ill : Stop a process #rom running

•!illall : Kill processes b- name

L

•less : %ispla- output one screen at a time

•let : 5er#orm arithmetic on shell +ariables

•ln : Create a s-mbolic lin! to a /le

•local : Create +ariables

•locate : ind /les

•logname : 5rint current login name

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 8/16

•logout : 2xit a login shell

•loo! : %ispla- lines beginning $ith a gi+en string

•lpc : Line printer control program

•lpr : B6 line print

•lprint : 5rint a /le

•lprintd : Abort a print >ob

•lprintE : List the print Eueue

•lprm : )emo+e >obs #rom the print Eueue

•ls : List in#ormation about /le(s"

•lso# : List open /les

@

•ma!e : )ecompile a group o# programs

•man : Help manual

•m!dir : Create ne$ #older(s"

•m!/#o : @a!e Bs (named pipes"

•m!iso#s : Create an h-brid SBFGG&DBL2T&HS /les-stem

•m!nod : @a!e bloc! or character special /les

•more : %ispla- output one screen at a time

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 9/16

•mount : @ount a /le s-stem

•mtools : @anipulate @S%BS /les

•mtr : 1et$or! diagnostics (traceroute&ping"

•m+ : @o+e or rename /les or directories

•mm+ : @ass @o+e and rename (/les"

1•netstat : 1et$or!ing in#ormation

•nice Set : the priorit- o# a command or >ob

•nl 1umber : lines and $rite /les

•nohup : )un a command immune to hangups

•noti#-send : Send des!top noti/cations

•nsloo!up : Iuer- nternet name ser+ers interacti+el-

B•open : Bpen a /le in its de#ault application

•op : Bperator access

5•pass$d : @odi#- a user pass$ord

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 10/16

•paste : @erge lines o# /les

•pathch! : Chec! /le name portabilit-

•ping : Test a net$or! connection

•p!ill : Stop processes #rom running

•popd : )estore the pre+ious +alue o# the current director-

•pr : 5repare /les #or printing

•printcap : 5rinter capabilit- database

•printen+ : 5rint en+ironment +ariables

•print# : ormat and print data 8

•ps : 5rocess status

•pushd : Sa+e and then change the current director-

•p$d : 5rint ?or!ing %irector-

I

•Euota : %ispla- dis! usage and limits

•Euotachec! : Scan a /le s-stem #or dis! usage

•Euotactl : Set dis! Euotas

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 11/16

)

•ram : ram dis! de+ice

•rcp : Cop- /les bet$een t$o machines

•read : )ead a line #rom standard input

•readarra- : )ead #rom stdin into an arra- +ariable

•readonl- : @ar! +ariables&#unctions as readonl-

•reboot : )eboot the s-stem

•rename : )ename /les

•renice : Alter priorit- o# running processes

•rems-nc : S-nchroni3e remote /les +ia email

•return : 2xit a shell #unction

•re+ : )e+erse lines o# a /le

•rm : )emo+e /les

•rmdir : )emo+e #older(s"

•rs-nc : )emote /le cop- (S-nchroni3e /le trees"

S

•screen : @ultiplex terminal* run remote shells +ia ssh

•scp : Secure cop- (remote /le cop-"

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 12/16

•sdi6 : @erge t$o /les interacti+el-

•sed : Stream 2ditor

•select : Accept !e-board input

•seE : 5rint numeric seEuences

•set: @anipulate shell +ariables and #unctions

•s#tp : Secure ile Trans#er 5rogram

•shi#t : Shi#t positional parameters

•shopt : Shell Bptions

•shutdo$n : Shutdo$n or restart linux

•sleep : %ela- #or a speci/ed time

•slocate : ind /les

•sort : Sort text /les

•source : )un commands #rom a /le <.=

•split : Split a /le into /xedsi3e pieces

•ssh : Secure Shell client (remote login program"

•strace : Trace s-stem calls and signals

•su : Substitute user identit-

•sudo : 2xecute a command as another user

•sum : 5rint a chec!sum #or a /le

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 13/16

•suspend : Suspend execution o# this shell

•s-mlin! : @a!e a ne$ name #or a /le

•s-nc : S-nchroni3e data on dis! $ith memor-

 T

•tail : Butput the last part o# /le

•tar : Tape A)chi+er

•tee : )edirect output to multiple /les

•test : 2+aluate a conditional expression

•time : @easure 5rogram running time

•times : 'ser and s-stem times

•touch : Change /le timestamps

•top : List processes running on the s-stem

•traceroute : Trace )oute to Host

•trap : )un a command $hen a signal is set(bourne"

•tr : Translate* sEuee3e* and&or delete characters

•true : %o nothing* success#ull-

•tsort : Topological sort

•tt- : 5rint /lename o# terminal on stdin

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 14/16

•t-pe : %escribe a command

'

•ulimit : Limit user resources

•umas! : 'sers /le creation mas!

•umount : 'nmount a de+ice

•unalias : )emo+e an alias

•uname : 5rint s-stem in#ormation

•unexpand : Con+ert spaces to tabs

•uniE : 'niEui#- /les

•units : Con+ert units #rom one scale to another

•unset : )emo+e +ariable or #unction names

•unshar : 'npac! shell archi+e scripts

•until : 2xecute commands (until error"

•uptime : Sho$ uptime

•useradd : Create ne$ user account

•userdel : %elete a user account

•usermod : @odi#- user account

•users : List users currentl- logged in

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 15/16

•uuencode : 2ncode a binar- /le

•uudecode : %ecode a /le created b- uuencode

J

•+ : Jerbosel- list director- contents (<ls l b="

•+dir : Jerbosel- list director- contents (<ls l b="

•+i : Text 2ditor

•+mstat : )eport +irtual memor- statistics

?

•$ait : ?ait #or a process to complete

•$atch : 2xecute&displa- a program periodicall-

•$c : 5rint b-te* $ord* and line counts

•$hereis : Search the user=s path* man pages and source /les #or a

program

•$hich : Search the user=s path #or a program /le

•$hile : 2xecute commands

•$ho : 5rint all usernames currentl- logged in

•$hoami : 5rint the current user id and name (<id un="

•$get : )etrie+e $eb pages or /les +ia HTT5* HTT5S or T5

7/17/2019 Todos Os Comandos Básicos de a a Z - Kali

http://slidepdf.com/reader/full/todos-os-comandos-basicos-de-a-a-z-kali 16/16

•$rite : Send a message to another user

x

•xargs : 2xecute utilit-* passing constructed argument list(s"

•xdgopen : Bpen a /le or ')L in the user=s pre#erred application.