Linux pwd command
Print the full path of your current working directory.
pwd [-L | -P]Open guide Search 56 commonly used Linux commands with syntax, options, examples and manual links.
Print the full path of your current working directory.
pwd [-L | -P]Open guide List files and folders. Add flags to show hidden files and details.
ls [OPTION]... [FILE]...Open guide Move to another directory. Use “cd -” to return to the previous one.
cd [-L | -P] [DIRECTORY]Open guide Print the username associated with the current effective user ID.
whoami [OPTION]...Open guide Show user and group IDs for the current user or another account.
id [OPTION]... [USER]Open guide Clear the visible contents of the terminal screen.
clear [-T TYPE] [-V] [-x]Open guide Show commands recorded by your shell in the current history list.
history [N] | history [-c] | history [-d OFFSET]Open guide Open the manual page for a command. Press q to leave the viewer.
man [OPTION]... [[SECTION] PAGE ...]Open guide Create a directory. The -p flag also creates missing parent directories.
mkdir [OPTION]... DIRECTORY...Open guide Create an empty file, or update an existing file’s modification time.
touch [OPTION]... FILE...Open guide Copy files. Add -r when copying a directory and its contents.
cp [OPTION]... SOURCE... DESTINATIONOpen guide Move or rename files and directories.
mv [OPTION]... SOURCE... DESTINATIONOpen guide Remove files. This does not normally move them to a recoverable trash folder.
rm [OPTION]... FILE...Open guide Create a link. Use -s to create a symbolic link.
ln [OPTION]... TARGET [LINK_NAME]Open guide Display detailed metadata about a file or directory.
stat [OPTION]... FILE...Open guide Identify a file’s type by examining its contents and metadata.
file [OPTION]... FILE...Open guide Search a directory tree by name, type, age, and other conditions.
find [STARTING-POINT...] [EXPRESSION]Open guide Search text for a pattern. Use -R for directories and -n to show line numbers.
grep [OPTION]... PATTERN [FILE...]Open guide Find paths using a prebuilt filename database; results may need updating.
locate [OPTION]... PATTERN...Open guide Show which executable would run when you enter a command name.
which [-a] NAME...Open guide Print file contents to the terminal or join multiple files together.
cat [OPTION]... [FILE]...Open guide Read long text one screen at a time. Search with / and quit with q.
less [OPTION]... [FILE]...Open guide Show the first lines of a file; use -n to choose how many.
head [OPTION]... [FILE]...Open guide Show the last lines of a file. Use -f to follow new lines as they arrive.
tail [OPTION]... [FILE]...Open guide Count lines, words, and bytes. Use -l for a line count only.
wc [OPTION]... [FILE]...Open guide Sort lines of text. Add -n for numeric order or -r for reverse order.
sort [OPTION]... [FILE]...Open guide Report or remove adjacent repeated lines; sort first to group matches.
uniq [OPTION]... [INPUT [OUTPUT]]Open guide Extract selected fields or character ranges from each input line.
cut OPTION... [FILE]...Open guide Transform text streams; this example prints matching lines without editing files.
sed [OPTION]... SCRIPT [FILE]...Open guide Process text by fields and patterns; fields are separated by whitespace by default.
awk [OPTION]... 'PROGRAM' [FILE]...Open guide Show a snapshot of processes. This format lists processes for all users.
ps [OPTION]...Open guide View a live, interactive summary of processes and resource use.
top [OPTION]...Open guide Display memory use. The -h flag chooses human-readable units.
free [OPTION]...Open guide Show available and used disk space for mounted filesystems.
df [OPTION]... [FILE]...Open guide Estimate directory space use. Here, list direct children in readable units.
du [OPTION]... [FILE]...Open guide Print system information. The -a flag requests the available details.
uname [OPTION]...Open guide Show how long the system has been running and its load averages.
uptime [OPTION]...Open guide Inspect or manage systemd services. Service names vary by distribution.
systemctl [OPTIONS...] COMMAND [UNIT...]Open guide Read systemd journal entries. Use -u to filter by service unit.
journalctl [OPTIONS...] [MATCHES...]Open guide Inspect or configure network interfaces, addresses, and routes.
ip [OPTIONS] OBJECT { COMMAND | help }Open guide Send diagnostic echo requests to test network reachability.
ping [OPTION]... DESTINATIONOpen guide Show socket information. The flags below list listening TCP and UDP ports.
ss [OPTIONS] [FILTER]Open guide Transfer data to or from a URL; -I requests response headers only.
curl [OPTION]... URL...Open guide Retrieve a file from a URL. Check the source before downloading or running it.
wget [OPTION]... [URL]...Open guide Connect securely to a remote machine using its account and host name.
ssh [OPTION]... [USER@]HOST [COMMAND]Open guide Copy files between hosts over SSH. Check both source and destination paths.
scp [OPTION]... SOURCE... TARGETOpen guide Query DNS records and inspect the response returned by a DNS server.
dig [@SERVER] NAME [TYPE] [QUERY-OPTIONS]Open guide Create or inspect tar archives. This example lists files without extracting them.
tar MODE [OPTION]... ARCHIVE [FILE]...Open guide Compress a file with gzip. By default, the input file is replaced by its compressed form.
gzip [OPTION]... [FILE]...Open guide Create a ZIP archive. Add -r when including a directory tree.
zip [OPTION]... ARCHIVE.zip FILE...Open guide List or extract ZIP contents. Inspect untrusted archives before extraction.
unzip [OPTION]... ARCHIVE.zip [FILE...] [-d DIRECTORY]Open guide Compress files using xz. The -k flag keeps the original file.
xz [OPTION]... [FILE]...Open guide Change file permissions. This example grants the owner execute permission.
chmod [OPTION]... MODE FILE...Open guide Change file ownership. Use elevated privileges only when needed.
chown [OPTION]... [OWNER][:[GROUP]] FILE...Open guide Run an approved command with elevated privileges. Check the command before confirming.
sudo [OPTION]... COMMAND [ARGUMENT...]Open guide Show the groups to which a user account belongs.
groups [USER]...Open guide No matching entries. Try another search.