Directory navigation tips
Here a few tips especially for using in shell scripts:
(cd directory && some-commands)
Go to directory and run commands and return to current directory at the end.
pushd .
Put current dir on stack.
popd
Retrieve previously pushed dir from stack and go there.
- 0 Comment
- Murat Demirten
- 22 Apr 2008, 08:41
-
You must be login first or sign-up for an account to post comments.
Maybe you should look at these also:
USERBOX
CATEGORIES
MOST READ TODAY
- Enabling remote desktop on a VirtualBox Machine
- dropbear rsa key problem
- Redirecting tcp / udp ports with socat
- XFS Filesystem has duplicate UUID problem
- Users with /bin/false shell to login on vsftpd
- Remove all frozen messages from exim mail queue
- Rewriting destination ip address
- Recovering mysql root password
- Lowercase Table Names in MySQL
- Passwordless sudo setup
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
