cd's to a directory and lists the contents


/ Published in: Bash
Save to your folder(s)

for .bashrc, a function that cd's to a directory and lists the contents it takes ls arguments and a directory. for example, cl goes to home dir and lists contents. cl -l goes to ~/ and long lists contents. and cl -lrt public_html shows the contents of public_html in long list reverse time order.

URL: http://cutup.org/anize/?bash_tricks

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.