스크립을 짜서 계속 활용하는 방법과 간단하게 써먹는 방법 2가지 알려드립니다.
1. 스크립트 시킨뒤 계속쓰는 방법
[root@localhost home]# vi /usr/bin/fileprm
=====================삽입=====================
#!/bin/sh
input=$1
chmod $input `ls -l|grep ^-|awk '{print $9}'`
==============================================
:wq!
[root@localhost home]# chmod 755 /usr/bin/fileprm
사용예
[root@localhost home]# fileprm 755
2번째 그냥쓸경우
[root@localhost home]# chmod 755 `ls -l|grep ^-|awk '{print $9}'`
해당 숫자만 바꾸어서 쓰시면됩니다.
1. 스크립트 시킨뒤 계속쓰는 방법
[root@localhost home]# vi /usr/bin/fileprm
=====================삽입=====================
#!/bin/sh
input=$1
chmod $input `ls -l|grep ^-|awk '{print $9}'`
==============================================
:wq!
[root@localhost home]# chmod 755 /usr/bin/fileprm
사용예
[root@localhost home]# fileprm 755
2번째 그냥쓸경우
[root@localhost home]# chmod 755 `ls -l|grep ^-|awk '{print $9}'`
해당 숫자만 바꾸어서 쓰시면됩니다.
[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6077 | 9년 전 | 187 | ||
| 6076 |
PlayPixel
|
9년 전 | 202 | |
| 6075 | 9년 전 | 199 | ||
| 6074 | 9년 전 | 252 | ||
| 6073 |
|
9년 전 | 219 | |
| 6072 |
|
9년 전 | 377 | |
| 6071 | 9년 전 | 298 | ||
| 6070 |
|
9년 전 | 333 | |
| 6069 | 9년 전 | 298 | ||
| 6068 |
|
9년 전 | 254 | |
| 6067 | 9년 전 | 264 | ||
| 6066 |
|
9년 전 | 384 | |
| 6065 |
PASKRAN
|
9년 전 | 272 | |
| 6064 | 9년 전 | 294 | ||
| 6063 |
kiplayer
|
9년 전 | 374 | |
| 6062 |
|
9년 전 | 335 | |
| 6061 | 9년 전 | 269 | ||
| 6060 |
|
9년 전 | 330 | |
| 6059 |
|
9년 전 | 278 | |
| 6058 |
|
9년 전 | 277 | |
| 6057 | 9년 전 | 318 | ||
| 6056 |
|
9년 전 | 254 | |
| 6055 |
|
9년 전 | 308 | |
| 6054 |
|
9년 전 | 290 | |
| 6053 |
snshero
|
9년 전 | 647 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기