Category: OS

  • How to unzip .gz File

    How to unzip .gz File

    We can decompress the .gz file in current directory by

  • How to use “grep” command to find text including subdirectories

    How to use “grep” command to find text including subdirectories

    I want to find all files which contain a specific string of text. • -r (or –recursive) option is used to traverse also all sub-directories of /path, whereas• -l (or –files-with-matches) option is used to only print filenames of matching files, and not the matching lines (this could also improve the speed, given that grep…

  • Install PHP 8.1 on Ubuntu

    Install PHP 8.1 on Ubuntu

    If you do not have a server, you may check out Setup EC2 with Instance Connect (https://www.teachonetofish.net/setup-ec2-with-instance-connect/) Install Apache To run a web server, you need to install Apache first. Apache rewrite Apache rewrite allow you setup the routing which is good for SEO. Add the highlight code below. Press “i” to change to insert…

  • Move folder

    Move folder

    In Linux, we use mv to move files/folders. Move folder content up one level

  • Linux find IP address

    Linux find IP address

    Usually we will use the https://www.whatismyip.com or search in Google https://www.google.com/search?q=what+is+my+ip to find the public ip address, but if you are using Linux terminal (no browser) then you can use the following commands to find public IP addresses: If you just want to find the private IP address, then you can use the following commands.…

  • Mac Finder 2022

    Mac Finder 2022

    Finder In Mac, the file explorer is named Finder. To make your life easier, you should do this when you get your new MacBook. Default Finder Default finder look like this. It does not give you functional information. We can customise it. Menu -> View Change to Result Now it shows you all useful information…