shell
shell列表
-
Unix如何添加新的用户
要在UNIX系统中增加新用户,可采用useradd命令,常用命令格式如下:/etc/useradd [-c comment] [-d directory]] [-g group] [-m] [-s shell] username其中,-c comment... [shell]
-
shell的种类有哪些
在UNIX系统里可以使用多种不同的shell可以使用。最常用的几种是 Bourne shell (sh), C shell (csh), 和 Korn shell (ksh)。三种shell 都有它们的优点和缺点。Bourne shell... [shell]
-
shell程序如何生命变量?shell变量是弱变量吗?
shell变量是弱变量,即该变量不需定义就能使用。shell变量都是字符串变量。其中数字字符串有双重特性,即是字符串又是整型数据。当数字字符串变量进行运算时,取其整数部分进行... [shell]
-
Shell编程面试题
1.用Shell编程,判断一文件是不是字符设备文件,如果是将其拷贝到 /dev 目录下。参考程序:#!/bin/shFILENAME=echo “Input file name:”read FILENAMEif [ -c \"$FILE... [shell]
-
如何执行一个shell程序
执行一个shell程序的一种方法是:sh shell_program arguments这种方式激活一个子shell并且指定这个子shell为执行这个程序的命令解释器。这个程序文件不是必须为可执行的... [shell]
-
UNIX操作系统结构由哪几部分组成
UNIX操作系统结构由三大部分组成:(1) Kernel(内核)(2) Shell(外壳)(3) 工具及应用程序UNIX Kernel(UNIX内核) 是UNIX操作系统的核心,指挥调度UNIX机器的运行,直接控制计... [shell]
-
shell变量的作用空间是什么
在shell脚本中定义的变量仅在脚本中有效,但使用如下的一些命令可以改变其作用域或属性:①export [option] [name[=value]]– 表明选项结束,所有后续参数都是实参。-f 表... [shell]
-
Shell脚本如何向终端输出信息
常用如下两个命令用于向终端打印信息:echoprintfecho命令常用于需要进行简单格式化的字符串打印;printf命令是Shell版本的C语言函数printf,它为格式化输出提供了高度的灵... [shell]
-
如何在Shell脚本中使用函数
#!/bin/shhello(){echo “Hello there today ‘s date is `date`”}echo “now going to the function hello ”helloecho “back from the function ”... [shell]
-
shell程序中如何注释
推荐在shell程序中提供注释语句来注明程序的内容。注释由一个#符号开始。shell不会去执行任何在#之后的语句。#能够出现在命令行的任何位置。... [shell]
-
几个Shell Script面试题
1. How do you take a single line of input from the user in a shell script?2. Write a script to convert all DOS style backslashes to UNIX style slashes in a li... [shell]
-
Shell如何接收变量输入
在shell中使用read 命令接收变量输入,语法:read variable [variable......]例:$ cat color6echo This program prompts for user inputecho “please enter your f... [shell]
-
说一下Linux下有关用户和组管理的命令
添加账户 useradd 用户名passwd 用户名groupadd 组名 usedel -r 用户名/etc/group /etc/passwd /etc/shadow... [shell]