For example I'm in my directory:/home/mynameand then I want to CD into a different directory./home/pulsar/... Since I need to go pretty deep into the other directory, how can I go about this without having to type the whole line? I triedcd */thedirectoryiwanttogointobut that doesn't work. I have to type the whole line.
Why does the wildcard * not work when changing directories?
wildcards;cd command
Probably your wildcard does not work because:there were no matches for the wildcard from the location you gave, orthere was more than one match.The usual approach (in a shell) to moving frequently among subdirectories is to use the CDPATH feature, as well as pushd and popd.  The CDPATH feature (perhaps first seen in tcsh) is a colon-separated list of directories.  If the parent of your thedirectoryiwanttogointo name is reasonably unique, then you could add the parent to the list.For further reading (your shell's manual page should be first):What is CDPATH ?3.4. Changing Directories with cd (Red Hat Enterprise Linux Step By Step Guide)How to change the CDPATH for the C shells: csh and tcshpushd and popd are newer than CDPATH, but still dating from the mid-1990s.  They allow you to save your current directory (pushing onto a stack) and restore it (popping from a stack) during their respective cd commands.  For further reading:How do I use pushd and popd commands?Using pushd and popd in LinuxOther people use shell aliases or symbolic links.  Those are most useful when going to well-known locations.