[완료] 왕초보 질문! .으로 시작하는 파일의 의미?

jomsalza의 이미지

이런 초보적인 질문을 해도 되는가 모르겠네. 머리 끌쩍 끌쩍 ....
우분투 터미널에서 ls -al 했더니 파일들이 죽 나오던데 .으로 시작하는 화일이 있더라구요.
대체 무슨 화일이죠? 그외 디렉토리와 화일의 구분은 어떻게 하죠? 색깔로 하는강?

volatile의 이미지

hidden..

madman93의 이미지

하면 맨 앞에 d 라고 표시 되어 있으면 directory입니다.

퍼미션에 대해서 공부 하시면 더 많은 정보를 얻을 수 있습니다.

기초적인 질문을 하시기 전에 리눅스의 기초 먼저 공부 하시는게
먼저 일것 같군요 ^.^

---------------------------------------------
git init
git add .
git commit -am "project init"
---------------------------------------------

---------------------------------------------
git init
git add .
git commit -am "project init"
---------------------------------------------

pogusm의 이미지

점으로 시작하는 파일은
그냥 ls 했을때는 안보이는 숨김파일입니다..
홈디렉토리의 숨김파일들은 보통 각종 설정에 관한 내용들입니다.

그리고..
-rw-r--r-- 1 root root 4146 6월 24 09:50 install.log.syslog
drwxr-xr-x 4 root root 4096 8월 12 01:47 nagio_source
lrwxrwxrwx 1 root root 13 6월 24 09:47 /etc/rc.local -> rc.d/rc.local

퍼미션 맨 앞에 d가 붙어있으면 디렉토리입니다.
l이 붙어있으면 링크파일이고
-라면 일반파일입니다

jomsalza의 이미지

근데 cd /usr 하면 디렉토리 이동은 하는데 usr 디렉토리는 왜 안 보이죠?

pogusm의 이미지

# ls -al /
라고하시면 루트에 있는 모든 파일,디렉토리들이 보입니다..

그중에 usr 디렉토리도 맨마지막쯤에 있습니다(알파벳순서)

또는
# ls -d /usr
이렇게 해서 디렉토리를 볼수 있구요 ( # ls /usr 라고 하면 /usr디렉토리 안의 내용들이 보이죠 )

추가:

[root@localhost ~]# cd /usr
[root@localhost usr]# ls -la
합계 212
drwxr-xr-x 15 root root 4096 6월 24 09:47 . <------ 현재디렉토리를 지칭(여기서는 /usr)
drwxr-xr-x 24 root root 4096 8월 12 09:33 .. <------ 상위디렉토리를 지칭(여기서는 /)
drwxr-xr-x 3 root root 4096 6월 24 09:46 X11R6
drwxr-xr-x 2 root root 36864 8월 12 01:44 bin
drwxr-xr-x 2 root root 4096 1월 27 2010 etc
drwxr-xr-x 2 root root 4096 1월 27 2010 games
drwxr-xr-x 80 root root 12288 7월 18 08:34 include
drwxr-xr-x 6 root root 4096 5월 28 09:09 kerberos
drwxr-xr-x 34 root root 12288 7월 19 10:17 lib
drwxr-xr-x 60 root root 36864 8월 11 20:59 lib64
drwxr-xr-x 9 root root 4096 7월 19 10:18 libexec
drwxr-xr-x 14 root root 4096 8월 12 01:49 local
drwxr-xr-x 2 root root 12288 8월 12 01:44 sbin
drwxr-xr-x 104 root root 4096 8월 12 01:44 share
drwxr-xr-x 5 root root 4096 7월 25 18:44 src
lrwxrwxrwx 1 root root 10 6월 24 09:45 tmp -> ../var/tmp

jomsalza의 이미지

칠전한 답변에 감사드립니다. 절 두번 꾸벅 꾸벅 !!
이런 자질구레한 이야기는 인터넷에도 잘 안나오더라구요.
앞으로도 초보적인 질문 자주 올리겠습니다.
복받으실거예요. ^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.