본문 바로가기

리눅스 백스페이스 입력시 ^H 가 입력되는경우 ssh로 리눅스에서 작업하는중 백스페이스(←) 입력하면 문자가 지워지지 않고 ^H가 입력이 되는 경우가 발생하는 경우가 있다. 해결방법> stty 라는 명령어를 사용해서 ^H 를 erase 기능으로 변경한다. ssh를 접속할 때 마다 바꾸기 귀찮기때문에 .bash_profile에 추가한다. 1. 설정파일 변경 방법 shell 접속 설정파일에 stty erase ^H 를 입력한다. $> vim ~/.bash_profile......stty erase ^H . ./.bash_profile
DB SQL single quote(작은따옴표) insert Insert 하려고하는 컬럼이 ' '로 감싸고 있다면, ''를 두번 연속으로 사용한다. ex)Update TABLE SET COLUMN sEngNm='I''M' where key_column='00001';
cvs 서버/클라이언트 설정방법 cvs 설정시 서버작업과 클라이언트 작업으로 나누어진다.. RHEL 6.2 작업 cvs 서버 작업 1. cvs 홈 디렉토리생성. (root)#> cvs -d /backup/etc/cvs init 사용할 계정으로 권한변경#> chown -R user:user /backup/etc/cvs#> chmod -R 770 /backup/etc/cvs 2. 비밀번호 설정#> htpasswd -nb 계정 비번 vim passwd cvs -d :pserver:user@xxx.xxx.xxx.xxx:2401/backup/etc/cvs login비번입력창이 나옴. 서버에서 설정한 비번 입력한다. 홈디렉토리에 .cvspass 파일이 생성된다. 계정정보나 서버정보등을 잘못작성한 경우 수정가능 (vim ~/.cvspass) 2. ..
리눅스에서 파일 삭제시 파일이 많아서 삭제 안될때 root@server> rm -f ./*-bash: /bin/rm: 인수 명단이 너무 김 ls | xargs -n1000 rm -f--> ls 파일 1000개씩 나누어서 삭제함
sftp 설정방법 링크 http://opentutorials.org/module/432/3742
dell 서버 서비스태그 확인.. redhat,centos centos 상에서 서버 서비스태그(service tag, servicetag), 서버이름등등 확인하고싶은경우 사용.. dmidecode RPM패키기 확인 root 계정 $> rpm -qa | grep dmidecode $> dmidecode -t 1또는$> dmidecode | grep -i serial또는$> dmidecode -s system-serial-number 사용하면 확인가능 Serial Number: .............................
리눅스 HyperThread 작동상태 확인 $> cat /proc/cpuinfo .......siblings : 8.......cpu cores : 8.............. siblings = cpu cores 하이퍼스레드 disabledsiblings > cpu cores * 2 하이퍼스레드 enabled +Dell 서버 하이퍼스레드 기능 끄기재부팅 -> 바이오스(F2)설정 -> System BIOS Settings * Processor Settings -> Logical Processor 를 Disabled 선택, 저장후 종료
linux ftp 시간설정, 서버 localtime 사용 ftp client로 접속시 파일 시간이 9시간 차이나는 경우 해당 서버의 시간으로 파일 생성시간 보여주도록 설정root계정 파일수정$> vim /etc/vsftpd/vsftpd.conf #시간설정use_localtime=YES 재시작$>service vsftpd restart