[완료] sunos 에서 ls, ps 사용이 불편합니다.

ai의 이미지

안녕하세요?

업무상 SunOS 5.8 을 사용하게 되었는데, 환경이 linux 와 달라 불편함이 있습니다.

우선 제 환경입니다. gnu 툴이 얼마나 설치되어 있는진 확인을 못했습니다. (방법을 모릅니다)

bash-2.03# uname -a
SunOS hostname 5.8 Generic_117350-41 sun4u sparc SUNW,Sun-Fire-880
bash-2.03# bash --version
GNU bash, version 2.03.0(1)-release (sparc-sun-solaris)
Copyright 1998 Free Software Foundation, Inc.

[1] ls 출력에서 색상을 보려면 어떻게 해야 하나요?
ls 는 gnu coreutils 에 포함된 것이 아닌 것 같습니다.
--color=auto --show-control-chars 이런 옵션을 이해 못하더군요.
검색해보니 SnuOS 에 딸려오는 ls 는 색상 표현이 불가능 한 것 같은데,
그렇다면 gnu coreutils 를 설치하는 방법 외에는 없는 것인가요?
(지금은 dircolors 가 아예 없습니다.)

[2] ps 옵션이 불편합니다.
linux 에서는 ps auxf 해서 아래와 같은 출력을 얻습니다.

$ ps auxf
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1504  460 ?        S     2006   1:15 init [2]
root         2  0.0  0.0     0    0 ?        S     2006   0:02 [migration/0]
root         3  0.0  0.0     0    0 ?        SN    2006   0:00 [ksoftirqd/0]
root         4  0.0  0.0     0    0 ?        S     2006   0:02 [migration/1]
root         5  0.0  0.0     0    0 ?        SN    2006   0:00 [ksoftirqd/1]
root         6  0.0  0.0     0    0 ?        S     2006   3:01 [migration/2]
root         7  0.0  0.0     0    0 ?        SN    2006   0:00 [ksoftirqd/2]
root         8  0.0  0.0     0    0 ?        S     2006   1:15 [migration/3]
root         9  0.0  0.0     0    0 ?        SN    2006   0:00 [ksoftirqd/3]
(..snip..)
root     14797  0.0  0.0     0    0 ?        S     2006   0:00 [xfssyncd]
ai       21167  0.0  0.5  8896 5488 ?        Ss    2006   6:01 SCREEN irssi
ai       11688  0.0  0.1  4836 1800 pts/3    Ss    2006   0:00  \_ /bin/bash
ai       27081  0.0  0.7 12964 7836 pts/3    S+   Jan17   6:15  |   \_ irssi
ai       13683  0.0  0.1  4664 1560 pts/6    Ss+   2006   0:00  \_ /bin/bash
Debian-  17640  0.0  0.1  5136 1564 ?        Ss    2006   0:44 /usr/sbin/exim4 -bd -q30m
root     30798  0.0  0.7 29964 7616 ?        Ss    2006   0:02 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir --u
root      5019  0.0  2.5 34956 26792 ?       S    Feb20   0:59  \_ spamd child
root      5036  0.1  2.5 35020 26884 ?       S    Feb20   2:09  \_ spamd child
root      5052  0.0  2.7 36256 28040 ?       S    Feb20   0:59  \_ spamd child
root      5068  0.0  2.5 34612 26352 ?       S    Feb20   0:59  \_ spamd child
root      5090  0.0  2.5 35132 26924 ?       S    Feb20   1:35  \_ spamd child
(..snip..)
root      1891  0.0  0.1  2320 1112 ?        S    Feb02   0:00 /bin/sh /usr/bin/mysqld_safe
root      1930  0.0  0.1  2320 1116 ?        S    Feb02   0:00  \_ /bin/sh /usr/bin/mysqld_safe
mysql     1931  0.0  2.7 118500 28988 ?      S    Feb02   0:04      \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --us
root      1932  0.0  0.0  1492  504 ?        S    Feb02   0:00      \_ logger -p daemon.err -t mysqld_safe -i -t mysqld

SunOS 의 ps 에서는 auxf 스타일의 옵션을 이해하지 않더군요.
-elf 라던지 프로세스를 전체 조회할 수는 있지만, 자식 프로세스가 별개로 분리되어 나와 읽기가 좀 불편합니다.
이것도 역시 gnu procps 를 설치하는 수 밖에 없을까요?

[3] vim 도 없고 달랑 vi 가 있더군요!
원래 이런걸까요 ^~^; 손에 익지 않아서 환경이 참 불편하다는 느낌입니다.
이건 뭐.. 바이너리를 찾아서 설치하던지 해야겠네요.

조언 부탁드립니다.
감사합니다.

IsExist의 이미지

네 저두 어쩔수 없이 해당 GNU 툴을 받아서 설치합니다. 아래 사이트를 참조하세요.

http://www.sunfreeware.com/
---------
간디가 말한 우리를 파괴시키는 7가지 요소

첫째, 노동 없는 부(富)/둘째, 양심 없는 쾌락
셋째, 인격 없는 지! 식/넷째, 윤리 없는 비지니스

이익추구를 위해서라면..

다섯째, 인성(人性)없는 과학
여섯째, 희생 없는 종교/일곱째, 신념 없는 정치

---------
간디가 말한 우리를 파괴시키는 7가지 요소

첫째, 노동 없는 부(富)/둘째, 양심 없는 쾌락
셋째, 인격 없는 지! 식/넷째, 윤리 없는 비지니스

이익추구를 위해서라면..

다섯째, 인성(人性)없는 과학
여섯째, 희생 없는 종교/일곱째, 신념 없는 정치

ai의 이미지

감사합니다. 알려주신 사이트에서 이것 저것 보고 있습니다.

vim, gtk+-1.2, ncurses, fileutils 만 설치해도 당장 불편한건 덜하네요.
procps 는 linux 에서만 동작하는 모양입니다. SunOS 에 적응해야겠지요 이제.

도움 주셔서 감사합니다. ^~^/

War doesnt determine whos right, just whos left.

댓글 달기

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