- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- vi로 텍스트 파일을 열면 깨져서 나옵니다.
HP-UX
1752572
회원
4578
온라인
108788
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 12-16-2008 11:00 PM
날짜: 12-16-2008 11:00 PM
vi로 텍스트 파일을 열면 깨져서 나옵니다.
안녕하세요! 문의 사항이 있어서 글을 씁니다.
다른이 아니오라 일반 유저에서 슈퍼유저로 전환하여 VI로 파일을 열면 내용이 깨져서 보입니다. .profile 수정 해야 할것 같은데 VI로 열면 깨져서 어떻게 해야 할지 모르겠습니다.
아래 .profile는 일반 유저에서 캡쳐 한것 입니다.
# @(#) $Revision: 74.2 $
# Default (example of) super-user's .profile file
# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u
PATH=/usr/sbin:$PATH:/sbin:/home/root
# Be sure that VUE does not invoke tty commands
if ; then
# Set up the terminal:
if
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM
EDITOR=vi
export EDITOR
export EDITOR
fi # if !VUE
# Set up shell environment:
set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.
# Set up shell variables:
MAIL=/var/mail/root
echo "WARNING: YOU ARE SUPERUSER !!\n"
HISTFILE=~/.sh_history
export HISTFILE
# original path
#PATH=$PATH:/sbin:/usr/sbin:/bin:/etc ; export PATH
# new path; GCC enabled and /usr/local/bin
PATH=$PATH:/sbin:/usr/sbin:/bin:/etc:/opt/binutils/bin:/opt/gcc/bin:/usr/local/b
in ; export PATH
TERM=hp;export TERM
다른이 아니오라 일반 유저에서 슈퍼유저로 전환하여 VI로 파일을 열면 내용이 깨져서 보입니다. .profile 수정 해야 할것 같은데 VI로 열면 깨져서 어떻게 해야 할지 모르겠습니다.
아래 .profile는 일반 유저에서 캡쳐 한것 입니다.
# @(#) $Revision: 74.2 $
# Default (example of) super-user's .profile file
# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u
PATH=/usr/sbin:$PATH:/sbin:/home/root
# Be sure that VUE does not invoke tty commands
if ; then
# Set up the terminal:
if
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM
EDITOR=vi
export EDITOR
export EDITOR
fi # if !VUE
# Set up shell environment:
set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.
# Set up shell variables:
MAIL=/var/mail/root
echo "WARNING: YOU ARE SUPERUSER !!\n"
HISTFILE=~/.sh_history
export HISTFILE
# original path
#PATH=$PATH:/sbin:/usr/sbin:/bin:/etc ; export PATH
# new path; GCC enabled and /usr/local/bin
PATH=$PATH:/sbin:/usr/sbin:/bin:/etc:/opt/binutils/bin:/opt/gcc/bin:/usr/local/b
in ; export PATH
TERM=hp;export TERM
1 응답 1
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP