강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

more 실행환경에서 현재 행번호 확인하는 방법

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

more 실행환경에서 현재 행번호 확인하는 방법




 

more명령어로 특정 파일내용을 확인하면서 현재 위치한 행번호를 확인하고자 한다면 다음과 같이 =키를 입력하면 됩니다.

 

 

 

 , =키는 현재 위치한 행번호를 표시해주는 키입니다.

 

 

 

 

 

If you are using PAM, you may need to manually install a PAM control

file as "/etc/pam.d/sshd" (or wherever your system prefers to keep

them).  Note that the service name used to start PAM is __progname,

which is the basename of the path of your sshd (e.g., the service name

for /usr/sbin/osshd will be osshd).  If you have renamed your sshd

executable, your PAM configuration may need to be modified.

 

A generic PAM configuration is included as "contrib/sshd.pam.generic",

you may need to edit it before using it on your system. If you are

using a recent version of Red Hat Linux, the config file in

contrib/redhat/sshd.pam should be more useful.  Failure to install a

valid PAM file may result in an inability to use password

authentication.  On HP-UX 11 and Solaris, the standard /etc/pam.conf

configuration will work with sshd (sshd will match the other service

name).

 

There are a few other options to the configure script:

 

--with-audit=[module] enable additional auditing via the specified module.

150

 

위의 예는 현재 위치가 150행임을 표시하고 있습니다.

 

 

 

 참고로 이 방법은 vi로 특정 파일을 편집하는 도중에 “:set nu”라고 하면 모든 행의 앞에 행 번호를 표시해주는 방법과 함께 알아두시면 매우 유용하게 활용할 수 있습니다.

 

 

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,045 명
  • 현재 강좌수 :  35,861 개
  • 현재 접속자 :  70 명