Category: Linux

  • 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 […]

  • 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 […]

  • 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. […]