root@www ~ [0.00 0.09]> cat /etc/passwd | awk -F: '{print " id: "$1"      "" directory : "$6}'
id: root       directory : /root
id: bin       directory : /bin
id: daemon       directory : /sbin
...중략

     -F fs               --field-separator=fs

저작자 표시 비영리 동일 조건 변경 허락
신고

'서버관리' 카테고리의 다른 글

ps 명령시 STAT설명  (0) 2012.12.07
whowatch 사용  (0) 2012.12.07
id, 홈디렉토리 리스트 만들기  (0) 2012.12.07
열려 있는 포트 확인하기  (0) 2012.12.06
유저생성시 디폴트값을 볼려면?  (0) 2012.12.06
프로세스 죽이기  (0) 2012.12.06

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret


  1. Ensure that your Linux virtual machine is powered on.
  2. If you are running a GUI interface, open a command shell.

    Note: Log in as a root user, or use the sudo command to complete each of these steps.
  3. Click VM in the virtual machine menu, then click Guest > Install/Upgrade VMware Tools and click OK.
  4. To create a mount point, run:

    mkdir /mnt/cdrom
  5. To mount the CDROM, run:

    mount /dev/cdrom /mnt/cdrom
  6. To copy the Compiler gzip tar file to a temporary local directory, run:

    cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/

    Where <version> is the VMware Tools package version.
  7. To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
    • cd /tmp
    • tar -zxvf VMwareTools-<version>.tar.gz
  8. To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
    • cd vmware-tools-distrib
    • ./vmware-install.pl

      Notes:
      • Follow the screen prompts to install the VMware Tools. Options in square brackets are default choices and can be selected by pressing Enter.
      • To compile VMware Tools successfully, you need gcc Compiler and Linux Kernel sources provided by your Linux distribution. Consult your Linux distribution documentation for details on how to install these packages.
      • It is normal for the console screen to go blank for a short time during the installation when the display size changes.
      • Some warnings or errors are normal, like when a files does not exist.
      • Depending on the Linux distribution, your network service might restart after installation. VMware recommends that you invoke this command from the console and not remotely.
  9. If you are running a GUI interface, restart your X Window session for any mouse or graphics changes to take effect.
  10. To start VMware Tools running in the background during an X Window session, run:

    /usr/bin/vmware-toolbox &
  11. Depending on your environment you may need to unmount the CDROM. To unmount the CDROM, run:

    umount /mnt/cdrom
  12. Depending on your environment, you may need to manually end the VMware Tools installation. To end the VMware Tools install, click VM in the virtual machine menu, then click Guest > End VMware Tools Install.

 

저작자 표시 비영리 동일 조건 변경 허락
신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret

/root/.bash_profile

export PS1="\u@\h \w> "

\u -> user name
\h -> hostname
\w -> full pathname of current directory

자신이 작업하고 있는 경로가 어디인지 쉽게 알 수 있겠네요.
끝 부분의 공백은 가독성을 높이기 위함입니다.

저작자 표시 비영리 동일 조건 변경 허락
신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret
dircolors -p > ~/dircolors.txt
eval $( dircolors -b ~/dircolors.txt)

ls 해보면 밝은색깔을 볼수 있다.



  -p, --print-database        output defaults
  -b, --sh, --bourne-shell    output Bourne shell code to set LS_COLORS
저작자 표시 비영리 변경 금지
신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글 하나 달렸습니다.
  1. 터미널의 4번 컬러 4040FF정도
    12번 컬러 8080FF 정도...
secret