Copied to clipboard
CMD Generator
Command generator online
Quick Access:
a
adduser
alias
apt-get
apt
at
awk
b
blkid
c
cat
cd
chgrp
chmod
chown
cp
crontab
curl
cut
d
dd
df
diff
dig
du
e
echo
emacs
export
f
fdisk
ffmpeg
find
firewalld
free
g
getenforce
grep
groupadd
groupmod
gunzip
gzip
h
halt
head
history
i
ifconfig
info
iptables
j
journalctl
k
kill
l
less
ln
locate
ls
lsblk
m
man
mkdir
mkfs
more
mount
mv
n
nano
netstat
nslookup
nuxi
p
passwd
patch
ping
pkill
poweroff
ps
pwd
r
reboot
rm
rmdir
route
rsync
rsyslogd
s
scp
sed
semanage
setenforce
shutdown
sort
source
ssh-keygen
ssh
su
sudo
systemctl
t
tail
tar
tee
top
touch
traceroute
u
ufw
umount
uniq
unzip
updatedb
uptime
usermod
v
vi
vim
vmstat
w
wc
wget
whereis
which
whois
y
yum
z
zip
pwd
The pwd command is used to display the path of the current working directory.
$
Copy
Use symbolic links to get the value of the directory (-L)
Do not use symbolic links to get the value of the directory (-P)
Equivalent to -P -L (-a)
If the file exists, return 0 (-e)
If the file exists and is a regular file, return 0 (-f)
Equivalent to -L (-h)
If the string is not empty, return 0 (-n)
Do not print error messages to standard error output (-q)
If the file is readable, return 0 (-r)
If the file size is greater than zero, return 0 (-s)
Output version information and exit (-v)
If the string is empty, return 0 (-z)
Generate and copy
Example
Show the path of the current working directory:
pwd
Show the absolute path of the current working directory:
pwd -P
Show the logical path of the current working directory (do not follow symbolic links):
pwd -L
Show the physical path of the current working directory (follow symbolic links):
pwd -P -L