Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
roxas1828yYes. Cd is change directory in unix command line. You use it to navigate the file system. But here this alias makes anyone who uses the command change their location to a random directory instead.
-
maysi2578yThanks for the explanation. I know basic terminal commands but I don't know things like that.
Btw this is really sneaky 😄👍
Related Rants
When my neighbor forgets to lock his computer, I append this to his bashrc
alias cd='cd $(ls -d */ | sort -R | head -1) && echo'
undefined
prank
bash
alias
shell