From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word âLinuxâ in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by AlpĂĄr-Etele MĂŠder, licensed under CC BY 3.0
I think an alias could do that. Another good one is cd then ls.
An alias only runs a single command
Nice short helper!
Why would you
eval cd "\"\$$#\""
??? So youâre passing all arguments tomkdir
potentially making several folders (mkcd test1/foo1 test2/foo2
), then moving into the last provided argument ($# is 1 when there is one argument and $1 is the argument) via some exec magic. To be fair it does look safe (but execs always look safe :D) but why not move into the first provided argument instead (&& cp "$1"
) and avoid that dance entirely?I have a little function for that