파일이름 다음 붙는 별표(*)가 궁금합니다.

bisiri의 이미지

iplus:/opt/tivoli/tsm/client/ba/bin/script# ll
총 272 블록입니다.
drwxr-xr-x 2 root sys 96 12월 10일 11:06 ./
drwxr-xr-x 6 root bin 8192 12월 11일 06:06 ../
-rwxr--r-- 1 root sys 1749 12월 11일 11:18 bkup_result*
-rw-r--r-- 1 root sys 121796 12월 11일 11:19 temp.log
iplus:/opt/tivoli/tsm/client/ba/bin/script#

OS : HP-UX iplus B.11.23 U 9000/800 2432934315 무제한-사용자 라이센스

저기 bkup_result라는 쉘프로그램을 하나 만들고
실행권한을 주었더니 파일이름 뒤에 별표가 붙네요..

별표가 왜 붙는거죠.. PATH 때문인가 생각해봐서 PATH도 걸어주었지만 별표는 없어지지 않는데요;
이건 왜 이런거죠..??

참고로 vi bkup_result
vi bkup_result*
를 실행해도 결과는 똑같습니다...

whitelazy의 이미지

실행권한을 빼면 별표가 사라지는지는 확인해 보셨는지..? vi bkup_result 도 제대로 동작한다면 그냥 실행권한 가진 파일 표시하는게 아닐까 싶습니다만..

vi bkup_result
vi bkup_result*
는 디렉토리 내에 bkup_result 라는 문자열로 시작하는 파일이 한개뿐이라면 당연히 결과는 같습니다 bkup_result* 는 bkup_result 라는 문자열로 시작하는 모든 파일을 의미하니까요

세이군의 이미지

입력하신 명령어 ll은 Alias로 원래 의미는 ls -l -F 입니다.

-F는 파일의 종류를 같이 표시하라는 의미로
*는 실행가능한 파일을, /는 폴더(디렉토리)를 의미합니다.

Scarecrow의 이미지

vi bkup_result*의 의미는...
bkup_result로 시작하는 파일을 몽땅 다 vi로 열겠다는 의미로 보이는군요.

파일이 하나뿐이라 다행입니다.

bisiri의 이미지

감사합니다.. 역시 답은 man page에 있었군요..

-F After each file name, put one of:

+ A slash (/) if the file is a directory or a symbolic link
to a directory.
+ An asterisk (*) if the file is executable;
+ An at-sign (@) if the file is a symbolic link to a file;
+ A vertical bar (|) if the file is a fifo.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.