[clug] Command of the Hour

Francis Markham fmarkham at gmail.com
Mon Nov 17 03:17:38 GMT 2008


Anyone know a way to suppress bash's pushd from printing out the stack every
time it is called?

2008/11/17 Alex Osborne <ato at meshy.org>

> Andrew Janke wrote:
>
>> # go to wherever you were before
>> alias b="cd ${OLDPWD}"
>>
>
> In bash and probably other shells, "cd -" is a built-in shorthand for "cd
> $OLDPWD".
>
> Also check out "pushd", "popd" and "dirs" which let you manage a stack of
> directories (so for example you could alias pushd as cd and then use popd as
> a multi-level back button).
>
>
>
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>


More information about the linux mailing list