You can also write your own script:
Code:
cd /usr/bin
sudo emacs cl
Add something like this to the file:
Code:
#!/bin/bash
cd $1 # $1 refers to the first argument given to your script.
ls
exit 0
Then you give everyone permission to run it:
Since it is stored in the /usr/bin, it will automatically be activated once you type it in the terminal. Hence, you can use it just the way you described, i.e:
EDIT: This tip is essentially useless. Running cd inside the script won't have any effect outside the script (in the terminal). But there are a lot of other fun stuff to do with scripting (just google "bash scripting tutorial" if you wanna know more.)
Bookmarks