본문 바로가기

Linux

[Fedora20] Mysql 비밀번호 설정 및 변경 1. mysql 시작 2. 초기 비밀번호 설정 3. SQL 로그인4. DB->SQL 5. 비밀번호 확인 4테이블이 검색되었습니다. password부분에 값이 있다면 비밀번호가 설정된 것이고, 공란이라면 설정되지 않은 것입니다.6. 비밀번호 변경하기 " " 사이에 원하는 변경할 PW를 넣습니다. changed가 0이면 바뀌지 않은 것이니 주의 flush privileges로 변경사항을 적용시켜야 완료됩니다.* 에러 정리 (none) 부분에 mysql이 지정되어야합니다. Database changed 메시지를 확인해야함. 더보기
프로세스 관리하기 ( Ctrl+z 재개하기 ) The general job control commands in Linux are:jobs - list the current jobsfg - resume the job that's next in the queuefg %[number] - resume job [number]bg - Push the next job in the queue into the backgroundbg %[number] - Push the job [number] into the backgroundkill %[number] - Kill the job numbered [number]kill -[signal] %[number] - Send the signal [signal] to job number [number]disown %[numbe.. 더보기
숫자 비교 검사 -ne (not equal)-eq (equal)-gt (greater than)-ge (greater than 혹은 equal)-lt (less than)-le ( less than 혹은 equal) 문자열 비교를 위해서는= 혹은 != if (!(-e $junk)) then //현재 dir에 junk가 없다면, 생성 ; -e는 존재하면 참 'mkdir' $junk endif 더보기
ls 디렉토리랑 그냥이랑 ls -l seconddir -> seconddir이라는 DIR 안에 있는 파일정보ls -ld seconddir -> seconddir이라는 DIR의 정보 더보기