Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save KatieKay1993/93682e60d50a4f00f28488cc6f03f40d to your computer and use it in GitHub Desktop.

Select an option

Save KatieKay1993/93682e60d50a4f00f28488cc6f03f40d to your computer and use it in GitHub Desktop.
유용한 리눅스 커맨드

grep

search string in files

$ grep "string"
$ grep -r "string" # find recursively
$ grep -r -i "string" # dont' care upper/lower case

du

utility to check disk usage

$ du -sh <directory>

dhclient

wifi 접속할 때, ip주소 받아올 때 사용

$ dhclient wlan0
# or
$ dhclient -v wlan0

linux version check

$ cat /etc/*release
#or
$ cat /etc/issue

xdg-open

현재 위치에서 파일 탐색기 열기

$ xdg-open .
# or
$ xdg-open [filename]

whereis

$ whereis ioctl

screen

세션 죽이기

screen -X -S [session] quit
@KatieKay1993
Copy link
Author

Xdg-open
$cat / etc / release*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment