DEV Community

[Comment from a deleted post]
Collapse
 
benjaminblack profile image
Benjamin Black

built-in (AFAIK) pushd and popd commands

You can determine if a command is builtin in bash with the type command. E.g.,

$ type pushd
pushd is a shell builtin

$ type mv
mv is aliased to `mv -i'

$ type ssh
ssh is hashed (/usr/bin/ssh)

$ type rsync
rsync is /usr/bin/rsync