[22709] 2014-05-28_LinuxShell脚本的10个有用的“面试问题和解答”

文档创建者:s7ckTeam
浏览次数:19
最后更新:2025-01-18
2014-05-28_LinuxShell脚本的10个有用的“面试问题和解答” L i n u x   S h e l l 1 0 L i n u x   2 0 1 4 - 0 5 - 2 8 L i n u x 使 T h e - T e c m i n t - T e a m S h e l l 访 S h e l l s h e l l L i n u x   S h e l l 1 .   s h e l l 使 e x i t e x i t 0 退 U n i x s h e l l 0 e x i t   - 1 使 a n y t h i n g . s h # ! / b i n / b a s h e c h o   " H e l l o " e x i t   - 1 e c h o   " b y e " #   s h   a n y t h i n g . s h   H e l l o e x i t . s h :   3 :   e x i t :   I l l e g a l   n u m b e r :   - 1 e x i t   - 1
2 .   使 L i n u x s e d #   s e d   ' 1   d '   f i l e . t x t 使 #   s e d   ' 1   d '   f i l e . t x t   >   n e w _ f i l e . t x t s e d - i #   s e d   - i   ' 1   d '   f i l e . t x t 3 .   s e d s e d   - n   n   p   f i l e . t x t n p - n w c #   s e d   n   ' n   p '   f i l e . t x t   |   w c   c t e c m i n t . t x t #   s e d   - n   ' 5   p '   t e c m i n t . t x t   |   w c   - c 4 .   L i n u x L i n u x v i   v i v i [ e s c ] v i v i s e t   l i s t :   c t r l + m ^ M 5 .   x y z d i r _ x y z 访
#   m k d i r   d i r _ x y z #   c h m o d   g + w x   d i r _ x y z #   c h m o d   + t   d i r _ x y z d i r _ x y z g + t x r o o t 6 .   L i n u x L i n u x L i n u x L i n u x L i n u x L i n u x 7 .   L i n u x c u t c u t L i n u x t x t _ t e c m i n t 1 0 #   c u t   - c 1 - 1 0   t x t _ t e c m i n t #   c u t   - d ; - f 2   - f 5   - f 7   t x t _ t e c m i n t 8 .   c m p d i f f c m p d i f f 西 d i f f 使 c m p 9 .   e c h o l s l s e c h o l s 使 e c h o   * 1 0 .   i n o d e i n o d e i n o d e L i n u x U n i x
i n o d e i n o d e T e c m i n t . c o m v i a :   h t t p : / / w w w . t e c m i n t . c o m / i n t e r v i e w - q u e s t i o n s - o n - s h e l l - s c r i p t i n g / G O L i n u x   w x y   L C T T   L i n u x   h t t p : / / l i n u x . c n / a r t i c l e - 3 1 0 1 - 1 . h t m l
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则