[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previa | Próxima revisiónAmbos lados, revisión siguiente | ||
es:howtos:software:efficient_cli_navigation [2019/08/28 15:23 (UTC)] – [Stack (pila) de directorios en bash] slackwarespanol | es:howtos:software:efficient_cli_navigation [2019/08/28 18:10 (UTC)] – [How does it work in practice?] slackwarespanol | ||
---|---|---|---|
Línea 172: | Línea 172: | ||
* '' | * '' | ||
- | ==== How does it work in practice? ==== | + | ==== ¿Cómo funciona en la práctica? ==== |
- | First of all, add a directory to the stack. Please note that it also automatically switches to the directory | + | En primer lugar, agregue un directorio |
< | < | ||
Línea 180: | Línea 180: | ||
user@darkstar: | user@darkstar: | ||
- | Alternatively, you can '' | + | Alternativamente, puede '' |
< | < | ||
- | After adding a few directories you can display the content of the stack: | + | Después de agregar algunos directorios, |
< | < | ||
Línea 195: | Línea 195: | ||
6 ~/ | 6 ~/ | ||
- | Please note that the first entry always displays the current working directory so if it also sits at the top of the stack, you'll see what seems like duplicate lines. The '' | + | Tenga en cuenta que la primera entrada siempre muestra el directorio de trabajo actual, por lo que si también se encuentra en la parte superior de la pila, verá lo que parecen líneas duplicadas. El indicador |
- | + | ||
- | To switch to one of the directories in the stack you could issue: | + | |
+ | Para cambiar a uno de los directorios en la pila, puede emitir: | ||
< | < | ||
user@darkstar: | user@darkstar: | ||
- | Admittedly, this is not the most concise way of changing directories. To make it shorter we can add an alias and a function to the '' | + | Es cierto que esta no es la forma más concisa de cambiar directorios. Para acortarlo, podemos agregar un alias y una función al archivo |
< | < | ||
- | List the current stack by simply typing | + | Enumere la pila actual simplemente escribiendo |
< | < | ||
Línea 218: | Línea 217: | ||
}</ | }</ | ||
- | The '' | + | La función |
< | < |