반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- dbms
- postgresql #vacuum #full_vacuum #verbose
- chatgpt3 #AI #datascience
- Database
- SQL_VIEW #SQL #VIEW
- Network #TCP #IP #Netmask #Host
- network #network_terminology #network_protocols
- database #dbms #objects #sql #schema #table #functions
- High_Availability
- streaming_replication
- join #postgresql #sql #database
- postgresql #pgadmin #port #firewalld
- Linux #linux_tar #split
- linux #filesystem #linuxdirectory
- Replication
- data_oid
- SQL_COMMANDS #DDL #DML #TCL
- RAM #CPU #CS #Computer_Science #Terms
- postgresql
- SQL_basic
- repmgr #postgresql #replication #HA
- the_one_thing
- glossary #database #termins #postgresql #postgresql_architecture
- SQL #NULL #NOT_NULL
- oid2nae #postgresql
- one_thin
- EDB
- postgresql #system_memory #local_memory #shared_memory #postgresql_architecture
- postgresql_fdw
- inux #ome_dir #unix #linux_commands #linux_useradd #useradd
Archives
- Today
- Total
i am lazy
Linux chown command 본문
728x90
반응형
Linux 시스템에는 여러 사용자가 있을 수 있습니다. 모든 사용자는 고유한 이름과 사용자 ID 를 가지고 있습니다. 시스템에서 사용자만 사용할 수 있는 경우 사용자가 각 파일의 소유자가 됩니다.
Linux chown 명령은 사용자에 대한 파일의 소유권, 디렉토리 또는 심볼릭 링크를 변경하는 명령어입니다.
Sytnax:
chown [OPTION]... [OWNER][:[GROUP]] FILE...
Example:
파일 소유자 변경:
chown enterprisedb test.txt
파일 그룹 변경:
chown enterprisedb test.txt
소유자와 그룹을 모두 변경
chown root:root test.txt
디렉토리를 재귀적으로 이동하여 파일의 소유자/그룹 변경
chown -R enterprisedb:enterprisedb /azik
Options:
-c, --changes: verbose와 같이 자세한 출력을 표시하기 위해 사용하지만 변경이 있을 때만 보고된다.
-f, --silent, --quiet: 오류 메시지를 억제하는 데 사용됩니다.
-v, --verbose: 처리된 모든 파일에 대한 진단을 표시하는 데 사용됩니다.
-R, --recursive: 지정한 디렉토리 포함하여 하위파일까지 변경할 경우 사용된다
--help: 도움말
--version : 버전 확인
감사합니다.
728x90
반응형
'Linux' 카테고리의 다른 글
Linux userdel command (1) | 2022.10.04 |
---|---|
Linux user home directory 변경 (0) | 2022.10.04 |
Linux mkdir command (0) | 2022.10.03 |
Linux file copy command (2) | 2022.09.30 |
Linux grep command (2) | 2022.09.30 |
Comments