Table of contents
Linux Commands
whoami
- display effective user idman, apropos, whatis
– display online manual documentation pagesclear
- clear the terminal screenpwd (present working directory)
– return working directory namels
– list directory contentscd && cd..
- you can move into any folder using the cd commandmkdir
– make directoriestouch
– change file access and modification times and creating the new filesrmdir
– remove empty directoriesrm, unlink
– remove directory entriesopen
– open files and directoriesmv
– move filescp
– copy fileshead
– display first lines of a filetail
– display the last part of a filedate
– display or set date and time> - output redirection operator used for overwriting files that already exist in the directory >> - this one is also output operator, but, it appends the data of an existing fil
cat
– concatenate and print filesless && more
- allows backward movement in the file as well as forward movementecho
– write arguments to the standard outputwc
– word, line, character, and byte countpipe
- pipe is a form of redirection (transfer of standard output to some other destination) that is used in Linux and other Unix-like operating systems to send the output of one command/program/process to another command/program/process for further processingsort
– sort or merge records (lines) of text and binary filesuniq
– report or filter out repeated lines in a filediff
– differential file and directory comparatorfind
– walk a file hierarchygrep
- The grep utility searches any given input files, selecting lines that match one or more patterns. By default, a pattern matches an input line if the regular expression (RE) in the pattern matches the input line without its trailing newline. An empty expression matches every line. Each input line that matches at least one of the patterns is written to the standard output. in short, search anything within a filedu
– display disk usage statisticsdf
– display free disk spacehistory
- used to view the previously executed commandps
– process statustop
– display sorted information about processeskill
– terminate or signal a processkillall
– kill processes by namesleep
– suspend execution for an interval of timegzip, gunzip, zcat
– compression/decompression tool using Lempel-Ziv codingtar
– manipulate tape archivesnano
- simple text editor in the style of the Alpine Composeralias
- shortcut that references a commandxargs
– construct argument list(s) and execute utilityln, link
– link fileswho
– display who is on the systemsu
– substitute user identitysudo, sudoedit
- execute a command as another userpasswd
– modify a user's passwordchown
– change file owner and groupchmod
– change file modes or Access Control Listscal, ncal
– displays a calendar and the date of Easter
for detail information about each command you can visit : linux-commands-handbook
Happy Coding 🎊🍾