I thought about adding the popd command verbiage to the last post (pushd), but I do like to keep these HOWTOs pithy. The pushd command was used to push directories onto a stack, so now I'm going to use the popd to remove directories from the stack. Again, I will use the dirs command to display the stack.
# csh
# dirs
/usr/local/popper / /export/home/esoft/xml/XMLDIR /opt/myapps/etc
# pwd
/usr/local/popper
Removes /usr/local/popper directory
# popd
/ /export/home/esoft/xml/XMLDIR /opt/myapps/etc
# dirs
/ /export/home/esoft/xml/XMLDIR /opt/myapps/etc
# pwd
# /
Removes /opt/myapps/etc directory
# popd +2
# / /export/home/esoft/xml/XMLDIR
# dirs
/ /export/home/esoft/xml/XMLDIR
# pwd
/
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment