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

cat명령어로 특정파일의 내용을 한화면 단위로 확인하기

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

cat명령어로 특정파일의 내용을 한화면 단위로 확인하기

 

앞의 예에서 보았던 textfile파일의 내용이 많지 않으므로 간단히 한 화면에 모두 볼 수가 있었습니다.

 

 

 

  하지만, 파일의 내용이 많아서 한 화면에 모두 볼 수 없을 경우에는 파일의 내용을 출력할 때 정지하지 않고 계속적으로 출력이 됩니다.

 

 

 

  이때 출력되는 화면을 "CTRL+S"키로 일시 정지시켰다가 "CTRL+Q"로 재개시킬 수 있습니다.

 

 

 

  하지만, 다음과 같이 한 화면씩 볼 수 있으므로 파일의 내용이 많을 경우에는 다음과 같이 사용하면 됩니다.

 

 

 

 

 

[root@su250 conf]# cat httpd.conf | more

#

# This is the main Apache server configuration file.  It contains the

# configuration directives that give the server its instructions.

# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.

# In particular, see

# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>

# for a discussion of each configuration directive.

#

#

# Do NOT simply read the instructions in here without understanding

# what they do.  They're here only as hints or reminders.  If you are unsure

# consult the online docs. You have been warned. 

#

# The configuration directives are grouped into three basic sections:

#  1. Directives that control the operation of the Apache server process as a

#     whole (the 'global environment').

#  2. Directives that define the parameters of the 'main' or 'default' server,

#     which responds to requests that aren't handled by a virtual host.

#     These directives also provide default values for the settings

#     of all virtual hosts.

#  3. Settings for virtual hosts, which allow Web requests to be sent to

#     different IP addresses or hostnames and have them handled by the

#     same Apache server process.

# server as "/etc/httpd/logs/foo.log".

#

 

### Section 1: Global Environment

#

# The directives in this section affect the overall operation of Apache,

# such as the number of concurrent requests it can handle or where it

# can find its configuration files.

--More--


이렇게 하면 한 화면씩 볼 수 있으며 다음 페이지를 보려면 "SpaceBar"를 누르면 됩니다.

 

 

 

 

이 명령어는 "more httpd.conf"와 동일한 명령어가 됩니다.

 

 

 

 이 책의 more명령어 편에서 자세히 확인하시기 바랍니다.

 

 

 

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,033 명
  • 현재 강좌수 :  35,782 개
  • 현재 접속자 :  152 명