본문 바로가기

Linux

Combine multiple PDF files to a pdf file In the case, one want to create one pdf file from N pdf files, gs will save us to do this quickly. For example, one has the following pdf files : 1.pdf2.pdf....10.pdf And would like to have result.pdf from these pdf files, the following command will create the result.pdf file gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=result.pdf -dBATCH file{1..10}.pdf 더보기
how to acceess udev rule parameter Sometime, one needs to access all attribute on a device in order to create the udev rule for this device. $ udevadm info --query=all -n /dev/EtherCAT0 --attribute-walk Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed b.. 더보기
How to get only the mac address (Linux) Sometime, I would like to get only the mac address of the ethernet device. so here is the command line to do this. ip addr show dev enp5s0 | grep "link/ether" | awk '{print $2}' 더보기
Exact copy a huge directory into the different one in linux I have ifc1410-ioxos-161103 in /export/nfsroots/, and would like to copy the entire dir in the different name. $ mkdir ifc1410-ioxos-161103-rules-test $ cd ifc1410-ioxos-161103 $ sudo -E tar cf - . | (cd /export/nfsroots/ifc1410-ioxos-161103-rules-test/ && tar xBf -) Reference http://www.linuxdevcenter.com/pub/a/linux/lpt/18_16.html 더보기
With wget to download a directory recursively wget -e robots=off -r --no-parent --reject "index.html*" http://aaa.bbb.ccc/dic Reference - http://www.gnu.org/software/wget/manual/html_node/Robot-Exclusion.html 더보기
한컴 - 한숨이 나오는 컴퓨터 환경을 만드는 회사 예전에 한글과 컴퓨터를 살려보겠다고, 혼자 정품 사쓰고, 난리를 피웠던 나를 내가 후회한다. hwpx기반 2014vp를 업데이트 하면서, 정말 바보같은 기조가 바뀌나 했더니, 포멧 기술 문서 허접한거나, 공개한 표준도 결국 그냥 그런 MS에서 하는 정도 해주면 되겠지라는 생각... 리눅스 지원 뷰어를 만들었데서 살펴보니... 여전히 한컴, 너의 생각은 딱 거기까지구나. 후유.... 맥이라도 iOS라도 없었으면 너네들이 리눅스를 지원을 했겠냐만.. 64bit 리눅스 뷰어라고 내 놓은 것. deb로 패키징을 했으면, Debian 7 이 기준인듯 한데. 그런데 이런... 메세지는 정말 할말이 없다. hwpviewer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.1.. 더보기
compare two directories by using diff diff -Naur 1st_directory/ second_directory/Do not use * and other symbols after directory/ 더보기
remove a user from a specific group The old post shows how to add a user to a specific group. From time to time, I need to remove a user from a specific group. So here what I summarize how to do this.2009/06/29 - [computer/linux] - add a user to a specific group remove a user from a specific groupHere auser is the fake account to be removed from www-data groupStep 1# vigrchange from auser:x:1001:www-data to auser:x:1001:Then they .. 더보기