디렉토리 내에서 파일만 퍼미션 변경
스크립을 짜서 계속 활용하는 방법과 간단하게 써먹는 방법 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 670 | ||
| 7629 |
|
10년 전 | 2415 | |
| 7628 | 10년 전 | 803 | ||
| 7627 |
|
10년 전 | 1044 | |
| 7626 |
|
10년 전 | 1801 | |
| 7625 | 10년 전 | 727 | ||
| 7624 | 10년 전 | 744 | ||
| 7623 |
|
10년 전 | 3120 | |
| 7622 | 10년 전 | 746 | ||
| 7621 |
leeleeleelee
|
10년 전 | 596 | |
| 7620 | 10년 전 | 548 | ||
| 7619 | 10년 전 | 506 | ||
| 7618 | 10년 전 | 1042 | ||
| 7617 | 10년 전 | 733 | ||
| 7616 | 10년 전 | 670 | ||
| 7615 | 10년 전 | 736 | ||
| 7614 | 10년 전 | 1278 | ||
| 7613 |
|
10년 전 | 2091 | |
| 7612 | 10년 전 | 1172 | ||
| 7611 | 10년 전 | 1432 | ||
| 7610 |
|
10년 전 | 1913 | |
| 7609 |
|
10년 전 | 1367 | |
| 7608 |
mwdkim
|
10년 전 | 1143 | |
| 7607 |
|
10년 전 | 1074 | |
| 7606 |
mwdkim
|
10년 전 | 3952 | |
| 7605 | 10년 전 | 701 | ||
| 7604 | 10년 전 | 1038 | ||
| 7603 | 10년 전 | 1659 | ||
| 7602 |
|
10년 전 | 1090 | |
| 7601 |
AniNest
|
10년 전 | 2807 | |
| 7600 |
port443
|
10년 전 | 1046 | |
| 7599 | 10년 전 | 954 | ||
| 7598 | 10년 전 | 1036 | ||
| 7597 | 10년 전 | 4584 | ||
| 7596 |
SeungYeon
|
10년 전 | 906 | |
| 7595 |
untitled
|
10년 전 | 2448 | |
| 7594 |
프로그래머7
|
10년 전 | 1746 | |
| 7593 |
untitled
|
10년 전 | 2387 | |
| 7592 |
untitled
|
10년 전 | 1955 | |
| 7591 |
untitled
|
10년 전 | 2690 | |
| 7590 |
아리마2001
|
10년 전 | 868 | |
| 7589 | 10년 전 | 1118 | ||
| 7588 |
|
10년 전 | 2934 | |
| 7587 | 10년 전 | 1317 | ||
| 7586 | 10년 전 | 681 | ||
| 7585 | 10년 전 | 1714 | ||
| 7584 | 10년 전 | 1422 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1182 | |
| 7582 |
|
10년 전 | 1144 | |
| 7581 | 10년 전 | 1371 | ||
| 7580 | 10년 전 | 1021 | ||
| 7579 |
|
10년 전 | 615 | |
| 7578 | 10년 전 | 1439 | ||
| 7577 |
|
10년 전 | 1884 | |
| 7576 | 10년 전 | 1396 | ||
| 7575 |
멋진남자임
|
10년 전 | 1479 | |
| 7574 | 10년 전 | 2136 | ||
| 7573 | 10년 전 | 3272 | ||
| 7572 | 10년 전 | 773 | ||
| 7571 |
|
10년 전 | 793 | |
| 7570 |
|
10년 전 | 1334 | |
| 7569 | 10년 전 | 1562 | ||
| 7568 |
this1mg
|
10년 전 | 1060 | |
| 7567 |
|
10년 전 | 776 | |
| 7566 | 10년 전 | 929 | ||
| 7565 |
Angel하늘
|
10년 전 | 1027 | |
| 7564 |
seoldi
|
10년 전 | 1272 | |
| 7563 |
|
10년 전 | 1411 | |
| 7562 |
멋진남자임
|
10년 전 | 2104 | |
| 7561 | 10년 전 | 725 | ||
| 7560 |
leeleeleelee
|
10년 전 | 923 | |
| 7559 | 10년 전 | 5065 | ||
| 7558 |
RinaP
|
10년 전 | 803 | |
| 7557 |
|
10년 전 | 1266 | |
| 7556 | 10년 전 | 1205 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1676 | |
| 7554 | 10년 전 | 1105 | ||
| 7553 |
senseme
|
10년 전 | 1351 | |
| 7552 |
ehdltdoit
|
10년 전 | 1450 | |
| 7551 |
|
10년 전 | 1841 | |
| 7550 |
leeleeleelee
|
10년 전 | 1609 | |
| 7549 | 10년 전 | 2443 | ||
| 7548 | 10년 전 | 1854 | ||
| 7547 |
멋진남자임
|
10년 전 | 1973 | |
| 7546 | 10년 전 | 1020 | ||
| 7545 |
ILMare1003
|
10년 전 | 1304 | |
| 7544 |
|
10년 전 | 1263 | |
| 7543 | 10년 전 | 900 | ||
| 7542 | 10년 전 | 678 | ||
| 7541 |
울라라라우
|
10년 전 | 876 | |
| 7540 | 10년 전 | 1606 | ||
| 7539 | 10년 전 | 951 | ||
| 7538 |
|
10년 전 | 1839 | |
| 7537 | 10년 전 | 3623 | ||
| 7536 |
Gaumi
|
10년 전 | 1433 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1290 | |
| 7534 |
senseme
|
10년 전 | 1217 | |
| 7533 | 10년 전 | 1217 | ||
| 7532 | 10년 전 | 880 | ||
| 7531 | 10년 전 | 2070 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기