728x90 반응형 SMALL 차이2 [linux] profile, bashrc ,bash_profile 차이 및 순서 실행순서 1) profile -> 2 ) bash_profile -> 3) bashrc 1) /etc/profile login shell을 bash shell 로 실행하는 모든 user에게 적용. 직접 편집하는 것보다 /etc/profile.d에 shell script 작성 history시간등록 등~ 해당파일 안의 shell script if [ -x /usr/bin/id ]; then if [ -z "$EUID" ]; then # ksh workaround EUID=`/usr/bin/id -u` UID=`/usr/bin/id -ru` fi USER="`/usr/bin/id -un`" LOGNAME=$USER MAIL="/var/spool/mail/$USER" fi done 2) .bash_profile.. 2021. 10. 31. [linux]심볼릭 링크와 하드링크의 차이점 심볼릭 링크와 하드링크의 차이점 쉽게 말하면 심볼릭링크는 원본 지우면 깡통 하드링크는 원본 지워도 사용가능 심볼릭 링크 만들기 및 삭제 1) 심볼릭 링크 만들기 및 삭제 [ln -s target linkname] 또는 [ln --symbolic target linkname ] [심볼릭 링크 만들기 ] #ln -s test.so.11 test.so.1 [rm linkname] [심볼릭 링크 삭제] 2) 하드 링크 만들기 및 삭제 [ln target linkname] [하드 링크 만들기 ] #ln test.so test.so.hard 다만 하드링크는 보이는 것과 같이 inode 번호도 같고 새로운 파일을 생성되는것과 같다 .! 해서 원본이 사라진다해도 link는 target (원본) 역활을 할수있다. # r.. 2021. 10. 27. 이전 1 다음 728x90 반응형 LIST