# type useradd
useradd is hashed(/usr/sbin/useradd)
# type if
if is a shell keyword
# type [
[ is a shell builtin
# type pwd
pwd is a shell builtin
# type cd
cd is a shell builtin
- test_func 함수를 정의한다.
# test_func() {
> echo test_func
> }
- test_func 함수를 호출한다.
# test_func
test_func
# type test_func
test_fuc is a function
test_func ()
{
echo test_func
}
- alias로 PWD 명령어를 새롭게 정의한다.
# PWD
-bash: PWD: command not found
# alias PWD='pwd'
# PWD
/root/shell
# type PWD
PWD is aliased to `pwd'
반응형
'공부하기 > OS, network, programming ...' 카테고리의 다른 글
[쉘스크립트] 제어문 1 (0) | 2017.05.29 |
---|---|
[쉘스크립트] 변수에 값 할당하여 출력하기 (0) | 2017.05.29 |
[쉘스크립트] (0) | 2017.05.29 |
공부하기 좋은 사이트 (0) | 2017.05.25 |
프로세스 (0) | 2015.09.24 |
댓글