본문 바로가기

UNIX

페도라 비밀번호 초기화 - fedora root password reset su - root 명령어를 입력후 아무리 비밀번호를 누질러 보아도 계속되는 실패!! 우선 부팅시에 다음과 같은 화면이 떴을때 '엔터'키를 눌러줍니다 당연한것 이지만 아래와 같은 메뉴가 뜹니다. 가볍게 'e'키를 눌러서 들어갑시다 그럼 아래와 같이 하위 메뉴들이 나오는데 2번째 메뉴로 커서를 이동하신후 'e'키를 눌러줍니다 그럼 아래와 같이 코드를 입력할수 있는데 맨 끝투무리에 아래와 같이 'single'을 입력해 주세요 그럼 다시 이전 메뉴로 돌아가지고 이제 해당 메뉴를 선택한 상황에서 'b'키를 눌러줍니다 fedora는 변경된 코드를 따라 아래와 같이 부팅이 되며 'passwd'라는 명령어를 입력해 주시겠습니다. 그럼 아래와 같이 비밀번호를 재입력이 가능합니다. 지금 변경되는 비밀번호가 앞으로의 Roo.. 더보기
Windows OS Command Error Code (exit codes) 참조 : http://www.hiteksoftware.com/knowledge/articles/049.htm Code Description 0 The operation completed successfully. 1 Incorrect function. 2 The system cannot find the file specified. 3 The system cannot find the path specified. 4 The system cannot open the file. 5 Access is denied. 6 The handle is invalid. 7 The storage control blocks were destroyed. 8 Not enough storage is available to proces.. 더보기
[스크랩] crontab 사용법 # crontab -l 현재사용하고 있는 crontab 파일 출력 # crontab -e crontab 파일의 수정(edit) crontab -e 로 수정이 안될경우 1. #csh 2. #setenv EDITOR vi 명령 수행후 수정함 root crontab file /etc/cron.d/logchecker : /var/cron/log가 최대 화일 크기를 초과하는지를 판단하고, 만약 초과하면 내용을 /var/cron/olog로 복사한다. /usr/lib/newslog : syslog daemon에 의해서 /var/adm 디렉토리에 생성되는 log file을 청소한다. Controlling crontab Access cron utility를 제어하는 두개의 file /etc/cron.d/cron.allo.. 더보기
[스크랩]How To Find Files by Content Under UNIX How To Find Files by Content Under UNIX by Vivek Gite · 10 comments Q. I had written lots of code in C for my school work and saved it as source code under /home/user/c/*.c and *.h. How do I find files by content such as string or words (function name such as main() under UNIX shell prompt? A. You need to use following tools: [a] grep command : print lines matching a pattern. [b] find command: s.. 더보기
netstat -in 필드값 설명(unix) %netstat -in -i옵션은 netstat가 모든 설정된 네트워크 인터페이스의 상태를 출력하도록 하고, -n옵션은 netstat가 그결과를 숫자 형태로 나타내도록 한다. %netstat-in(예) Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queu le0 1500 172.16.0.0 172.16.12.2 1547 1 1127 0 135 0 lo0 1536 127.0.0.0 127.0.0.1 133 0 133 0 0 0 위 화면은 이 워크스테이션이 네트워크 인터페이스를 단 두개만 가지고 있다는 것을 보여준다. lo0 인터페이스는 모든 TCP/IP시스템이 가지고 있는 루프백 인터페이스이다. Name : 인터페이스 이름 항목은 인터페이스에 할당된.. 더보기