스크립을 짜서 계속 활용하는 방법과 간단하게 써먹는 방법 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에서 이동 됨]
게시글 목록
| 번호 | 제목 |
|---|---|
| 20014 | |
| 10421 |
jQuery
jQuery Quick Api Reference
5
|
| 10417 | |
| 20006 |
CSS
그라디언트 에디터
7
|
| 20003 | |
| 10410 | |
| 10407 | |
| 10392 | |
| 10389 | |
| 10380 |
Mobile
디바이스별 viewport 설정. (수정본)
8
|
| 10378 | |
| 17596 | |
| 10371 | |
| 19995 | |
| 10369 | |
| 10366 | |
| 10364 |
jQuery
[펌] jQuery select box
1
|
| 10363 |
기타
구글 확장프로그램 추천
|
| 10361 |
정규표현식
캡쳐 그룹과 비캡쳐 그룹
1
|
| 10357 |
웹서버
php 업로드 용량 늘리기
3
|
| 10352 | |
| 19990 | |
| 10349 | |
| 10343 |
Mobile
디바이스별 viewport 설정.
5
|
| 10340 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기