Linux/Unix 명령어 alias 명령어를 치환alias cp='cp -i'alias tarx='tar xvfz' 취소unalias cp arp 네트웍 시스템의 MAC 주소 확인arp -v awk문서에서 패턴을 검사해 값을 얻음 ls -al | awk '{print $1, $9}'1번째와 9번째 필드만을 출력 ls -al | awk '$5 > 1049576{print $5, $9}'1049576bit보다 큰 용량의 5번째와 9번째 필드만 출력 awk -F: /root/'{print $1}' /etc/group:로 구분자로 변경(default는 빈칸) cal 달력보기 cfdisk커서 기반 메뉴의 파티션 설정 유틸cfdisk /dev/hda chfn사용자 기본 정보 변경chfm lim chgrp파일 소유 그룹 변경/etc/grou..
[Ubuntu] Loss Password 보호된 글입니다.
Virtual Box 공유폴더 Virtual Box 공유폴더 Virtualbox > Devices 메뉴 > Shared Folders Ubuntu에서 항상 마운트 /media/share_folder sudo vi /etc/init.d/rc.local mount -t vboxsf Downloads /media/vboxShared_Downloads mount -t vboxsf -o uid=1000,gid=1000,dmode=0755,fmode=0755 Downloads /media/share_folder ln -s /media/shared_folder
우분투 한글 설정 우분투 한글 설정 언어팩 설치 시스템 설정 > 언어 지원 탭 > Install/Remove Languages > Korean 체크 키 설정 Keyboard input method system > none을 iBus로 변경 키보드 설정 윈도우키 > 검색 > keyboard layout > 두번째 탭 > 한글 키보드 추가
Login settings Login Settings sudo vi /etc/lightdm/unity-greeter.conf
screenrc # advertise hardstatus support to $TERMCAP termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\' ################ # # xterm tweaks # #xterm understands both im/ic and doesn't have a status line. #Note: Do not specify im and ic in the real termcap/info file as #some programs (e.g. vi) will not work anymore. termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E..
bashrc # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace # append to the history file,..
Ubuntu Server GUI Install Ubuntu Server GUI Install 1. apt-get update 2. apt-get upgrade 3. apt-get install xorg gdm 4. apt-get install gnome-session gnome-menus gnome-panel metacity nautilus or 1. apt-get install xorg gdm gnome-core 2. apt-get install ubuntu-desktop /etc/init.d/gdm start Using putty and xming vi /etc/ssh/ssh_config ForwardX11 yes service ssh restart http://www.chiark.greenend.org.uk/~sgtatham/putty/ ttp..
Shell 명령어 du 디렉토리 용량 체크 du -m directory_name Mb 단위로 보여줌 du -s directory_name 특정 디렉토리 사용량 du -h 현재 디렉토리의 사용량. df 하드 용량 체크 df -m mount 되어 있는 하드 용량을 Mb 단위로 보여줌 df -h 사람이 보기에 편한 단위로 표시함 whereis 소스, 실행파일, 메뉴얼 등의 위치를 알려줌 top 메모리 상태를 보여줌 uname -a OS 정보 (버전 등) lsb_release -a 버전 확인 가능 (uname과 달리 추가 배포 버전 등을 확인 가능) apt remove libhong dpkg --purge --ignore-depends={libhong} {libhong}