저는 리눅스에 익숙하며 파일을 라이브 호스트 된 디렉토리로 옮기는 데는 putty와 pscp를 사용하고 있습니다. 최근에 업로드 한 dist 폴더의 이름을 mv를 사용하여 실제 프로젝트 이름으로 변경하고 싶지만 권한 거부 오류가 발생합니다. 이러한 파일의 이름을 바꿀 수 있도록 이러한 파일을 정렬하는 가장 안전하고 합리적인 방법은 무엇입니까?linux에서/var/www/html의 파일 이름을 바꿀 때 사용 권한이 거부되었습니다.
[email protected]:/var/www/html$ ls -la
total 268
drwxr-xr-x 4 root root 4096 Aug 30 16:42 .
drwxr-xr-x 3 root root 4096 Aug 18 23:05 ..
-rw-rw-r-- 1 lawton lawton 253276 Aug 27 18:06 bundle.js
drwxr-xr-x 2 root root 4096 Aug 30 16:42 dist
-rw-r--r-- 1 root root 17 Aug 18 23:24 info.php
drwxr-xr-x 2 root root 4096 Aug 27 18:59 react-youtube
[email protected]:/var/www/html$ mv dist BTC_Sorter
mv: cannot move 'dist' to 'BTC_Sorter': Permission denied