Published onSeptember 27, 2023The difference between `cat` and `less`LinuxShellcat shows all, less paginates.
Published onSeptember 26, 2023What is the 'touch' command in Terminal?LinuxShellIf the file doesn’t exist, it creates a new empty file; if it already exists, it updates the modification time.
Published onJune 29, 2023Fixing the Unexpected use of 'location' errorreactUse window.location instead of location.
Published onJune 27, 2023Dive into `string.prototype.replaceAll`JavaScriptReplace all matches, use the `g` flag with regex, may not be supported in older browsers.