Bash - cd
Jump to a directory, execute a command (ls), & jump back
(cd /tmp && ls)
Count the number of files in a directory:
cd dir; ls -1 | wc -l
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.