스크립을 짜서 계속 활용하는 방법과 간단하게 써먹는 방법 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에서 이동 됨]
게시글 목록
| 번호 | 제목 |
|---|---|
| 20064 | |
| 10570 | |
| 10566 |
JavaScript
모바일웹 이미지맵 사용 소스
3
|
| 10565 |
JavaScript
[복사하기] 버튼 자료~
|
| 20055 | |
| 10560 |
PHP
php 동영상 강좌
4
|
| 10559 |
jQuery
array toggle
|
| 10557 | |
| 20051 |
HTML
IE6 PNG 초 간단하게 적용
3
|
| 20049 | |
| 10555 | |
| 10554 | |
| 10553 | |
| 284 | |
| 10552 | |
| 10551 | |
| 10545 |
jQuery
참고사이트 모음
5
|
| 10541 | |
| 10533 | |
| 20045 | |
| 20036 | |
| 10530 | |
| 10526 | |
| 10524 | |
| 10522 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기