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

현재상태에서 사용 가능한 debugfs명령어 확인

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

현재상태에서 사용 가능한 debugfs명령어 확인







 

파일시스템 내부의 debugfs모드에서의 사용 가능한 명령어를 확인할 수 있습니다.

 

 

 

debugfs모드에서 간단히 “lr”이라고만 하면 현재 상태에서 사용 가능한 debugfs명령어(List available commands)를 보여줍니다.

 

 

 

아래의 예는 /dev/sda3파일시스템을 오픈한 상태에서 현재 사용 가능한 debugfs명령어들을 확인한 것입니다.

 

 

 

 

 

debugfs: 

debugfs:  lr

Available debugfs requests:

 

show_debugfs_params, params      Show debugfs parameters

open_filesys, open       Open a filesystem

close_filesys, close     Close the filesystem

feature, features        Set/print superblock features

dirty_filesys, dirty     Mark the filesystem as dirty

init_filesys             Initalize a filesystem (DESTROYS DATA)

show_super_stats, stats  Show superblock statistics

ncheck                   Do inode->name translation

icheck                   Do block->inode translation

change_root_directory, chroot    Change root directory

change_working_directory, cd     Change working directory

list_directory, ls       List directory

show_inode_info, stat    Show inode information

이하생략

 

출력결과가 많아서 뒷부분은 생략하였습니다.

 

 

 

 참고로 lr대신 “list_requests”를 사용하셔도 동일한 결과를 얻을 수 있습니다.

 

 

 

 

 

 

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,037 명
  • 현재 강좌수 :  35,811 개
  • 현재 접속자 :  155 명