Skip to Content
Linux eficiente na linha de comandos
book

Linux eficiente na linha de comandos

by Daniel J. Barrett
April 2025
Intermediate to advanced
248 pages
6h 19m
Portuguese (Portugal, Brazil)
O'Reilly Media, Inc.
Content preview from Linux eficiente na linha de comandos

Apêndice B. Se usares uma Shell diferente

Este livro assume que a sua shell de login é bash, mas se não for,a Tabela B-1 pode ajudá-lo a adaptar os exemplos do livro para outras shells. O símbolo de marca de verificação ✓ indica compatibilidade - a funcionalidade dada é suficientemente semelhante a bash's para que os exemplos no livro corram corretamente. No entanto, o comportamento da funcionalidade pode diferir de bash's de outras formas. Lê cuidadosamente as notas de rodapé.

Nota

Independentemente de qual shell é a tua shell de início de sessão, os scripts que começam com#!/bin/bash são processados por bash.

Para experimentar outra shell instalada no seu sistema, simplesmente corre-a pelo nome (e.g., ksh) e carrega em Ctrl-D quando terminar. Para alterar a tua shell de login, lê man chsh.

Tabela B-1. bash recursos suportados por outros shells, em ordem alfabética
funcionalidade bash traço peixe ksh tcsh zsh

alias incorporado

✓, mas alias name não imprime o pseudónimo

Não tens sinal de igual: alias g grep

Colocar em segundo plano com &

bash -c

dash -c

fish -c

ksh -c

tcsh -c

zsh -c

bash comanda

dash

fish

ksh

tcsh

zsh

bash localiza em /bin/bash

/bin/dash

/bin/fish

/bin/ksh

/bin/tcsh

/bin/zsh

BASH_SUBSHELL variável

Prepara a expansão com {}

Utiliza seq

Apenas {a,b,c}, não {a..c}

Utiliza seq

cd - (alterna entre diretórios)

cd incorporado

CDPATH variável

set CDPATH value

set cdpath = (dir1 dir2 …​)

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Aprende o Linux moderno

Aprende o Linux moderno

Michael Hausenblas

Publisher Resources

ISBN: 9798341642164