disk mount ## Block dev 확인 ##lsblk file –s /dev/xvdb ## 포멧 ##mkfs –t ext /dev/xvdb ## /etc/fstab 추가 – 이미지 서버의 data 폴더 예시 ##/dev/xvdb /data ext4 defaults,nodev,nosuid,noexec 0 0 ## mount ##mount -a Linux 2025.03.09
time zone 설정 cat /etc/localtime rm /etc/localtime ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime ## crontab 등록 ##vi /etc/crontab ## time sync ###04 */1 * * * root /root/localtime.sh ## rdate 설치 ##yum install rdate ## localtime.sh ##vi /root/localtime.sh #!/bin/shrdate -s time.bora.net Linux 2025.03.09
Command History 설정 vi /etc/profileHISTTIMEFORMAT='%Y-%m-%d %H:%M:%S 'export HISTTIMEFORMAT - 또는 -echo export HISTTIMEFORMAT=\"[%F %T] \" > /etc/profile.d/bash_history.shchmod 755 /etc/profile.d/bash_history.sh Linux 2025.03.09