Ubuntu 썸네일형 리스트형 Directories - 1 It mostly depends on your specific use case and environment: 1. Single-User, Personal Setup: • ~/spack is perfectly fine if you’re the only one who will be using Spack. It keeps everything contained within your home directory, so you don’t need elevated permissions and it’s easier to back up or remove later. 2. Multi-User System or System-Wide Installation: • /opt/spack (or another system-level .. 더보기 Directories 2 In a Linux filesystem hierarchy, both /opt/ and /usr/local/ are valid places to install software that doesn’t come from the system’s base distribution (e.g., apt, yum). They serve slightly different purposes and follow different conventions: 1. /opt/ (Optional Software) • Purpose: Reserved for “optional” software that is usually third-party, proprietary, or self-contained. Often these are large .. 더보기 ldconfig ldconfig is a system utility in Ubuntu and other Linux-based systems that manages the system’s dynamic linker run-time bindings. More concretely, it helps the operating system track and locate the dynamic libraries (.so files) used by various programs. Key points about ldconfig: 1. Function:When applications are executed, they rely on libraries (collections of precompiled functions) to perform v.. 더보기 기본 Library PATH의 설정 우분투에서 컴파일 또는 프로그램 실행시 기본으로 확인하는 Library PATH는 다음과 같다. 1. 기본 시스템 디렉토리들• /lib• /usr/lib• /lib/x86_64-linux-gnu (on 64-bit systems)• /usr/lib/x86_64-linux-gnu (on 64-bit systems) 2. /etc/ld.so.conf 아래 configuration 파일들예를 들어, 이런 것 들이 추가될 것이다./etc/ld.so.conf.dls000cuda.conf988cuda−12.conffakeroot−x8664−linux−gnu.confgds−12−4.confi386−linux−gnu.conflibc.confx8664−linux−gnu.conf cat .. 더보기 파일 또는 디렉토리 존재여부 확인 방법 리눅스 명령어 test 사용디렉토리 존재 여부$ sudo test -d /mnt && echo "Directory exists." || echo "Directory does not exist."Directory exists. 파일은 -f 옵션 사용 더보기 TMUX를 이용한 프로그램 실행 LINUX에서 SSH접속을 통한 프로그램 실행은 SSH접속이 끊기면 프로그램 실행도 동시에 중지된다.따라서, SSH접속이 중지된 상태에서도 프로그램 실행을 유지하고 싶은경우 아래 두개의 프로그램으로 터미널내 터미널을 실행하여야 한다. 1. screen2. tmux tmux가 조금 더 최신 프로그램이다. 사용방법은 sudo apt-get install tmuxtmux tmux가 실행된 화면상에서 기존 CLI와 동일한 작업을 수행SSH 종료 전 tmux 를 빠져 나온다. Ctrl+b 다음 d 를 누르면 된다. 그리고 SSH 접속 종료. 다음번 SSH 접속에서 기존에 실행하던 CLI를 보고 싶은 경우, tmux attach-session -t 0 더보기 Source Compile로 설치된 프로그램의 Dock등록방법 우분투에 프로그램을 Binary가 아니라 Source code build를 통해 설치하는 경우 Dock에 Icon등록이 안된다. 이번 포스팅에서는 Source code build를 통해 설치된 Paraview 5.12버전을 Dock에 등록해보도록 하자. 먼저 실행화일이 어디 생겨먹었는지 찾아보자. Cmake를 통해 build하면, 아래의 디렉토리에 실행화일 paraview가 생긴다. 아래와 같이 시험삼아 실행을 해보자. ~/paraview_build/bin$ ./paraview APT를 통한 binary package설치가 아니므로 Dock에 바로가기(아이콘)이 생성되지 않는다. 만들어 보자. 1. 실행파일이 있는 위치의 path를 알아낸다. - 이건 실행파일이 있는 위치에서 명령어 pwd(print w.. 더보기 Ubuntu Package uninstall Ubuntu 패키지는 인스톨 방법에 따라 uninstall 방법도 달라지게 된다. 1. 패키지 관리자를 이용하여 Binary(APT, APT-GET) 인스톨이 되어있는 경우 - 먼저 패키지 관리자로 인스톨 여부를 확인한다 sudo apt-cache search sudo apt-get remove sudo apt-get --purge remove https://luckeex.tistory.com/290 apt-get 명령어 정리 (패키지 설치,제거) https://blog.outsider.ne.kr/346 Ubuntu의 apt-get 명령어 정리apt-get(Advanced Packaging Tool)은 우분투(Ubuntu)를 포함안 데비안(Debian)계열의 리눅스에서 쓰이는 팩키지 관리 명령어 도구입니.. 더보기 이전 1 2 3 4 5 다음 목록 더보기