본문 바로가기
728x90

네트워크 수업/리눅스26

[리눅스] 사용자계정, 홈디렉터리 변경, 유저 패스워드 23.03.28 참고 : 2023.03.28 - [네트워크 수업/리눅스] - 사용자계정.pdf [root@centos7 ~]# cat /etc/passwd | more ==> |(파이프)는 앞 명령어 실행하고 뒤에거 실행해다오 라는 뜻 root:x:0:0:root:/root:/bin/bash ==> x가 패스워드(우리는 못알아봄) : 0은 user아이디 : 그다음0은 admin아이디 : root는 코맨트 : /root는 root사용자가 쓰는 홈디렉터리 : /bin/bash 는 명령어 해석기 shell중에 bone again shell을 쓴다. [root@centos7 ~]# cat /etc/shadow | more ==>보안을 요하는 특수계정이 여기에 들어있다. root:$6$pwFHMPUP5SAhjihb$jbphBZa.. 2023. 3. 28.
[리눅스] vmware와 연결 23.03.27 입력 리다이렉션 > : 입력 리다이렉션 c 하면 c로 병합된다. [root@centos7 /]# mkdir -p /test1/test2 [root@centos7 /]# touch /test1/test2/a [root@centos7 /]# cat >> /test1/test2/a this is test file :qw! ^Z [1]+ Stopped cat >> /test1/test2/a [root@centos7 /]# [root@centos7 /]# mkdir /test7 [root@centos7 /]# cp -r /test1/* /test7/ =>통째로 복사 [root@centos7 /]# ls -R /test7 =.. 2023. 3. 27.
[리눅스] fstab, 복사, 시간 23.03.23 검은창이 켜질 때 vi /etc/fstab :wq # shutdown -r now fstab = 자동마운트되는 설정이 여기 들어간다. [heejae@centos7 ~]$ su 암호: [heejae@centos7 heejae]# cd.. cd..: Command not found. [heejae@centos7 heejae]# cd .. [heejae@centos7 /home]# cd .. [heejae@centos7 /]# ls drive* drive2: drive3: test3 [heejae@centos7 /]# ls bin dev drive3 home lib64 mnt proc run srv tem tmp var boot drive2 etc lib media opt root sbin sys temp u.. 2023. 3. 23.
[리눅스] 쉘 23.03.22 어제 과제>> sdb의 나머지 500MB를 2번 파티션으로 잡고 /drive3에 마운트시켜 보세요. fdisk -l /dev/sdb n p 2 enter enter w reboot //이거 하라고 해서;; []?? 또는 [root@centos7 /]# mkfs.ext4 /dev/sdb3 ?? [root@centos7 /]# mkdir /drive3 [root@centos7 /]# mount /dev/sdb2 /drive3 질문 //모르고 sdb2에 drive2를 넣었을때 삭제방법 === m p 2 w w t??? 파티션 sdb1 sdb2만들기 [root@centos7 heejae]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will re.. 2023. 3. 22.
[리눅스] 실습 clear su cd / ls = list의 약자 = 디렉토리 목록을 보여주세요 mount = 보조기억장치(hdd,fdd,cd-rom 등)나 파일시스템이 다른 디스크를 /의 하위 디렉터리로 연결하여 사용 가능하게 해주는 명령어 [root@centos7 heejae]# su [root@centos7 heejae]# cd / [root@centos7 /]# ls = list의 약자 = 디렉토리 목록을 보여주세요 bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr [root@centos7 /]# ls /home =자기가 쓰는 디렉토리가 보인다. root=슈퍼유저의 디렉토리 [root@centos7 /]# mkd.. 2023. 3. 21.
[리눅스 실습] 23.03.16 GNOM Desktop (지놈 데스크탑, 그놈 데스크탑) 터미널 여는 방법 Alt + F2 + gnome-terminal 우클릭 + 터미널 >>관리자 모드로 들어가는방법 su root //super user = 그냥 su 만 쳐도 암호 // 내가 만든거 치기 >>리눅스 종료하기 shutdown -h now //폴트 shutdown -r // 리부트 (다시 시작) shutdown now // 재부팅 >>명령어 찾기 명령어 + --help //ex. shutdown --help man + 명령어 // manual //ex. man shutdown 하면 자세하게 나온다. >>시간 정해주기 명령어 + 숫자 //(숫자)분 이따가 내가 쓴 명령어를 실행하겠다. // ex. shutdown -h +3 //3분이따가 .. 2023. 3. 16.
728x90