github/gitignore · Global/Linux.gitignore

Linux .gitignore 템플릿 해설

Linux.gitignore가 편집기 백업(*~), FUSE·NFS 임시 파일, KDE .directory, 휴지통 폴더, nohup.out을 무시하는 이유를 설명합니다.

생성기에서 열기 Vim, JetBrains, VisualStudioCode, Go 함께 열기

Linux.gitignore는 6줄짜리 짧은 템플릿으로, 리눅스 데스크톱과 파일 시스템이 만드는 부산물만 다룬다. 역시 개인 전역 gitignore에 두기 좋은 종류다.

각 규칙은 특정 상황에서만 생기는 파일을 겨냥한다. 예를 들어 .nfs*는 NFS 마운트에서만, .fuse_hidden*은 FUSE 파일 시스템에서만 나타난다.

규칙별 해설

패턴무엇을, 왜 무시하나
*~편집기 백업Emacs, gedit, nano 등이 저장할 때 남기는 파일명~ 백업이다. 이름 끝이 물결표인 파일을 모두 무시한다.
.fuse_hidden*.nfs*FUSE·NFS 임시 파일열려 있는 파일을 지웠을 때 파일 시스템이 실제 삭제를 미루려고 이름을 바꿔 두는 파일이다. 프로세스가 파일을 닫으면 사라진다.
.directoryKDE 폴더 설정KDE Dolphin 파일 관리자가 폴더 보기 설정을 저장하는 파일이다.
.Trash-*휴지통이동식 미디어나 다른 파티션에서 파일을 지울 때 생기는 사용자별 휴지통 폴더(.Trash-1000)다.
nohup.out백그라운드 실행 로그nohup으로 명령을 실행할 때 출력이 기본으로 쌓이는 파일이다.

실무에서 주의할 점

원본 템플릿

Linux.gitignore규칙 6줄
*~# temporary files which can be created if a process still has a handle open of a deleted file.fuse_hidden*# Metadata left by Dolphin file manager, which comes with KDE Plasma.directory# Linux trash folder which might appear on any partition or disk.Trash-*# .nfs files are created when an open file is removed but is still being accessed.nfs*# Log files created by default by the nohup commandnohup.out

템플릿 출처: github/gitignore/Global/Linux.gitignore @356fd7b (2026-09-11) · CC0-1.0

함께 쓰는 템플릿

다른 템플릿 해설