본문 바로가기
반응형

+ OS/Linux & Unix24

[Linux & Unix] i-number(아이노드 번호)를 이용한 파일/디렉토리명 변경 하기 Linux를 사용하는경우 파일명 혹은 디렉토리가 한글이거나 인코딩문제로 깨진경우 파일을 열거나 디렉토리로 이동이 불가능 하다. $ ls -ailt 193052529 drwxr-xr-x 3 root root 48 8월 14 12:12 . 159472457 drwxr-xr-x 5 root root 115 8월 14 12:12 .. 193052531 -rw-r--r-- 1 root root 0 8월 14 12:12 테스트.txt 201357184 drwxr-xr-x 2 root root 6 8월 14 12:12 테테테스트 맨 앞에 있는 Number가 해당 파일 및 디렉토리의 i-number(아이노드 번호) 이다. 그럴 경우 i-number(아이노드 번호)를 이용하여 파일/디렉토리명을 변경하여 사용할 수 있다... 2019. 8. 14.
[Linux] 명령어를 통한 32Bit / 64Bit 확인 리눅스(Linux)에 어플리케이션을 설치하는 경우 32Bit(비트) 인지 64Bit(비트)인지 확인하는 경우가 있다. 요새 나오는 장비에 OS 설치하는 경우 대부분은 64Bit로 설치되고 있으나, 32bit인 경우도 있어 확인하는 방법을 알아보자 1. getconf LONG_BIT 1.1 64Bit $ getconf LONG_BIT 64 1.2 32 Bit $ getconf LONG_BIT 32 2. arch 2.1 64 Bit $ arch x86_64 2.2 32 Bit $ arch i386 or i686 3. uname 3.1 64 Bit $ uname -m x86_64 3.2 32 Bit $ uname -m i386 or i686 4 $HOSTTYPE 4.1 64 Bit $ echo $HOSTTYP.. 2019. 6. 7.
[Linux] Logrotate(로그 로테이트) 이용한 로그 관리 Linux에서 로그 관리를 위해 Logrotate를 사용 1. Logrotate란? Log 파일을 압축, 삭제, 메일링, 권한등 설정하여 쉽게 관리 할 수 있도록 사용되는 Linux 시스템 명령어 2. 설정 파일 /usr/sbin/logrotate logrotate 파일 위치 /etc/logrotate.conf logrotate 설정 파일 /etc/logrotate.d/* logrotate로 구동되는 각 프로그램의 설정 파일들 /var/lib/logrotate/logrotate.status logrotate가 구동된 Log /etc/cron.daily/logrotate logrotate가 Daily cron을 이용하여 구동 3. 프로그램의 설정 예시(http) /var/log/httpd/*log { 2017. 6. 10.
[Linux] 커맨드라인(Command Line)으로 Base64 복호화 Linux에서 특정 복호화툴(Tool)이 아닌 커맨드라인(Command Line)모드를 통한 Base64 복호화를 해보도록 하자 1. 사용 옵션 $ base64 --help Usage: base64 [-dhvD] [-b num] [-i in_file] [-o out_file] -h, --help display this message -D, --decode decodes input -b, --break break encoded string into num character lines -i, --input input file (default: "-" for stdin) -o, --output output file (default: "-" for stdout) 2. 사용 예제 $ echo VGVzdEJhc2U.. 2017. 1. 21.
300x250
300x250

loading