I'd like to write a bash scipt that would change to target directory and list the contents of new directory, all in one step. It would replace the two commands I constantly use consecutively:
- cd ./some_directory
- ls -al
After executing the script, my current directory would change, and ls -al would show the dir list.
cdl ./some_directory
Is this possible?
ls -al ./some_directory
? – frostschutz Mar 14 '17 at 10:22cd
into directory, and thenls -al
. – Danijel Mar 14 '17 at 10:55