분류 전체보기(85)
-
RHEL 설치 및 Repository 구성하기
RHEL은 Red hat Enterprise Linux로 유료 배포판 입니다.무료로 사용할 수는 있지만 사용 가능 범위가 한정적이기 때문에 보통 RHEL을 설치 후 레포지토리를 별도로 설정하여 사용합니다. 실습 환경 가상 머신 : BirtualBoxISO : rhel-8.8-x86_64-dvd 순서 1. RHEL - root 계정 생성 후 로그인2. SFTP 프로그램(FileZilla)을 사용하여 iso 파일 윈도우 -> 리눅스로 옮기기3. 파일질라로 옮긴 ISO 설치 미디어 파일을 /local_repo 폴더로 마운트하기4. repo 파일 작성5. yum 저장소 초기화순으로 진행하면 된다. 1. 초기환경 세팅이미 VirtualBox와 RHEL ISO 파일이 준비되어있다는 가정하에 진행합니다. 버츄얼박..
2024.11.25 -
Linux manual - man 사용법
지피티 답변을 참고하여 정리했다. 1. 기본 사용법명령어 확인: man 예: man ls설명서 검색: 키워드로 명령어를 찾고 싶다면 man -k 를 사용합니다.예: man -k quota(apropos 와 동일합니다.)2. 필요한 정보 빠르게 찾기페이지 검색: / 입력 후 검색어 입력예: /option → 해당 단어가 있는 곳으로 이동다음 항목은 n, 이전 항목은 N으로 이동합니다.섹션별 검색:같은 이름의 명령어가 여러 섹션에 있을 때 특정 섹션을 지정할 수 있습니다.예: man 5 passwd (섹션 5는 설정 파일에 대한 설명)섹션 번호:1: 사용자 명령어5: 설정 파일8: 관리자 명령어3. 문서 간 빠른 이동다른 명령어 보기: man 로 새로 열지 않고, 현재 man 페이지에서 !man 를 입력하..
2024.11.22 -
[HackerRank] Oracle - New Companies
혼자 풀었는가? group by 찾아보면서 해서 애매함..해설은 안 봄 Amber's conglomerate corporation just acquired some new companies. Each of the companies follows this hierarchy: Given the table schemas below, write a query to print the company_code, founder name, total number of lead managers, total number of senior managers, total number of managers, and total number of employees. Order your output by ascending compan..
2024.11.21 -
[HackerRank] Oracle - Binary Tree Nodes
혼자 풀었는가 ? XYou are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N.Write a query to find the node type of Binary Tree ordered by the value of the node. Output one of the following for each node:Root: If node is root node.Leaf: If node is leaf node.Inner: If node is neither root nor leaf node.Sample InputSample O..
2024.11.20 -
[HackerRank] Oracle - Occupations
[문제 및 예시 ]Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding Occupation. The output column headers should be Doctor, Professor, Singer, and Actor, respectively.Note: Print NULL when there are no more names corresponding to an occupation.Input FormatThe OCCUPATIONS table is described as follows:Occupation will only cont..
2024.11.20 -
리눅스 가장 위에 1줄이 안보일 때 대처법
# .bashrc 파일 수정vi ~/.bashrc# 위치가 헷갈려서find / -name ".bashrc"#로 검색되는 경로중 etc/로 시작하는 경로로 이동vi /.bashrc# 파일 끝에 다음 줄 추가export PROMPT_COMMAND='echo -en "\033[6n"'# 저장 후 적용됐는지 확인하기 위해clearreset하면 제대로 적용되는걸 확인할 수 있다.
2024.11.18