WEB/Linux9 Soft and Hard links inode : Pointer or number of a file on the hard disk( You can see using ls -i ) Soft Link : Link will be romoved if file is removed or renamed( command = ln -s ) Hard Link : Deleting renaming or moving the original file will not affect the hard lin( command = ln ) I'm going to create a file in home directory, and then I will use a soft link in tmp directory like this: like you can see, after rem.. 2024. 1. 30. Wildcards A wildcard is a character that can be used as a substitute for any of a class of characters in a search. * - represents zero or more characters ? - represents a single character [ ] - represents a range of chracters As you can see, if you created some files like below, it's not productive. Instead of creating each files, you can use a '{ }' wildcard. when you remove from abc1 to abc9, you can us.. 2024. 1. 29. Difference between find and locate I wondered when I learned find and locate commands from the last lesson. I've got the answer today. locate uses a prebuilt databse, which should be regularly updated, while find iterates over a filesystem to locate files. Thus, locate is much faster than find, but can be inaccurate if the db is not updated. To update locate db run updatedb Here's an example: for running updatedb, you need to bec.. 2024. 1. 29. 명령어(find, locate) 파일을 찾을 때 유용하게 쓸 수 있는 명령어이다. 1. find find find 명령어 관련 예시이다. find . -name "Jerry" .(dot) 은 현재 위치해 있는 디렉토리 기준으로 "Jerry" 라는 파일 찾는 명령어이다. 위치를 전혀 모르는 경우에는 .(dot) 대신 /(slash)를 이용하면 root directory 밑으로 전체 경로를 다 찾을 수 있다. 2. locate locate locate 명령어를 통하여 경로 지정없이 해당 파일의 위치를 쉽게 찾을 수도 있다. 2024. 1. 28. 이전 1 2 3 다음