0% found this document useful (0 votes)
93 views1 page

Linux Commands All Users Should Know

Linux commands all users should know provides a table listing essential Linux commands and their descriptions. Some key commands included are pwd to print the working directory, ls to list directory contents, cd to change directories, sudo to elevate permissions, wget to download files, and apt/yum/rpm to work with packages. Other important commands are df to show disk space, du to show disk usage, uname to print system information, passwd to change password, and mount to mount devices. Commands to view and edit files include cat, head, tail, diff, cp, mv, mkdir, rm, locate, find, grep, nano, and vim. Additional useful commands are ps to view processes, top to view processes in real-

Uploaded by

mk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

Linux Commands All Users Should Know

Linux commands all users should know provides a table listing essential Linux commands and their descriptions. Some key commands included are pwd to print the working directory, ls to list directory contents, cd to change directories, sudo to elevate permissions, wget to download files, and apt/yum/rpm to work with packages. Other important commands are df to show disk space, du to show disk usage, uname to print system information, passwd to change password, and mount to mount devices. Commands to view and edit files include cat, head, tail, diff, cp, mv, mkdir, rm, locate, find, grep, nano, and vim. Additional useful commands are ps to view processes, top to view processes in real-

Uploaded by

mk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linux Commands All Users Should Know

Command Description Command Description Command Description Command Description

pwd Print working directory sudo <command> Elevate permissions wget <URL> Download file apt, yum, rpm, pacman Work with packages

ls -lah List directory contents df Show free space on disk uname -a Print system information passwd Change password

cd <dir> Change directory df


du Show disk usage history Show command history mount -t <type> <device> <dir> Mount device

head <file>
cat <file> Show file contents Show first ten lines man <command> Show manual page reboot Reboot system
<command> | head
Modify timestamp tail <file>
touch <file> Show last ten lines echo <argument> Print to terminal which <command> Show command path
Create File <command> | tail

cp <source> <destination> Copy file diff <file 1> <file 2> Show file differences hostname Show DNS name nano <file> Open file in nano text editor

mv <file> <destination> Move file tar Manage .tar files useradd <username> Add new user vim <file> Open file in Vim text editor

Change file/directory
mkdir <dir> Make directory chmod <perm> <file or dir> userdel <username> Delete existing user whatis <command> Show command description
permissions
Change file/directory
rmdir <dir> Remove empty directory chown <UID> <file or dir> file <file> Show file information alias <name>=<command> Set command alias
ownership

rm -r <file or dir> Remove file or directory ps List running processes wc <file> Count words, lines, bytes unalias <name> Remove command alias

List running processes in


locate <file> Show file location top whoami Show current user clear Clear terminal contents
real-time

find -name <file or dir> Show file or directory location kill <signal> <PID> Terminate process ip addr Show IP address exit Exit terminal session

grep <string> <file> Find string in file ping <host or URL> Check connectivity

You might also like