Category: OS

  • MacOS Bootstrap 2021 – Applications

    MacOS Bootstrap 2021 – Applications

    We need many different applications for different projects. I listed some common programs here. See if you need them. Some can download from homebrew, some can download from App Store, some can only download from their website only. Files or Storage Dropbox Google Drive Microsoft OneDrive Filezilla Text Editor or IDE Evernote (App Store) VS […]

  • MacOS Bootstrap 2021 – Homebrew

    MacOS Bootstrap 2021 – Homebrew

    There are so many apps need to install in a new computer. Instead of downloading all one by one, you can use Homebrew. Homebrew can install apps for you by one command. Install Homebrew After Homebrew installed, you need to run the following command to start using Homebrew. Test Homebrew Homebrew Must have packages Python […]

  • Using Bitvise SSH Client to connect to an Ubuntu EC2 Instance

    Using Bitvise SSH Client to connect to an Ubuntu EC2 Instance

    Go to https://www.bitvise.com/ssh-client-download Click “Bitvise SSH Client Installer” Download and double click “Bitvise SSH Client Installer” file Accept agreement and click “Install” 5.Once installed, the following screen will be shown In EC2 console, click the icon to copy the EC2 public ip In Bitvise SSH Client, input EC2 public ip to Host field, and input […]

  • Setup Ubuntu EC2 in AWS

    Setup Ubuntu EC2 in AWS

    Login to your AWS Management Console https://aws.amazon.com/. After you logged in, choose your region before you move on. Go to EC2 service. Launch new instance Name: WordPress Application and OS Images (AMI): Ubuntu Instance type: t3.micro Key apir (login) -> Key pair name: wordpress Create key pair -> Key pair name: wordpress Then you will […]

  • Air Drop settings

    Air Drop settings

    Air Drop I don’t use MacBook migration tool because I want to install everything from a clean environment. If you need to manually migrate from old notebook, you can use Air Drop to copy files manually. Finder preferences Some other settings that cannot be found from menu, then you should go to Finder -> Preferences. […]

  • Linux list files

    Linux list files

    To display the files in a directory in Linux, we know we can use ls command, but we also want to sort the files by different order.If you are using Mac, you don’t have ll. You can set alias. Then add the following code. Update the shell without restarting computer. Sort by file size Reverse […]

  • Linux subfolder size

    Linux subfolder size

    Sub folder size In Linux, if you want to find the sub-folder size by Linux command, then Sort by size

  • 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

    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: Restart Apache Add a new .htaccess file. PHP 8.1 Ubuntu 20.04 comes with PHP 7.4. If you want to install PHP 8.1, you need to use the […]