Linux Basic Commands

 
lsLists a directory’s content
pwdShows the current working directory’s path
cdChanges the working directory
mkdirCreates a new directory
rmDeletes a file
cpCopies files and directories, including their content
mvMoves or renames files and directories
touchCreates a new empty file
fileChecks a file’s type
zip and unzipCreates and extracts a ZIP archive
tarArchives files without compression in a TAR format
nano, vi, and jedEdits a file with a text editor
catLists, combines, and writes a file’s content as a standard output
grepSearches a string within a file
sedFinds, replaces, or deletes patterns in a file
headDisplays a file’s first ten lines
tailPrints a file’s last ten lines
awkFinds and manipulates patterns in a file
sortReorders a file’s content
cutSections and prints lines from a file
diffCompares two files’ content and their differences
teePrints command outputs in Terminal and a file
locateFinds files in a system’s database
findOutputs a file or folder’s location
sudoRuns a command as a superuser
suRuns programs in the current shell as another user
chmodModifies a file’s read, write, and execute permissions
chownChanges a file, directory, or symbolic link’s ownership
useradd and userdelCreates and removes a user account
dfDisplays the system’s overall disk space usage
duChecks a file or directory’s storage consumption
topDisplays running processes and the system’s resource usage
htopWorks like top but with an interactive user interface
psCreates a snapshot of all running processes
unamePrints information about your machine’s kernel, name, and hardware
hostnameShows your system’s hostname
timeCalculates commands’ execution time
systemctlManages system services
watchRuns another command continuously
jobsDisplays a shell’s running processes with their statuses
killTerminates a running process

Comments

Popular posts from this blog

Transform values with a stream

Collections Framework

Inspect a collection