Author: Teach One To Fish

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

  • VS Code Shortcut

    VS Code Shortcut

    VS Code Shortcut Set keybinding to Run Python Search file Explorer Split Screen (Duplicate screen) User Settings Auto Format Select words vertically Others 8.1. Coming soon 1. Set keybinding to Run Python Ctrl + Shift + P Type “Run Python file in Terminal” Hover over it and click the ⚙️ icon Double click “Keybinding” Set your desired short 2. Search file Ctrl + P…

  • VS Code must have plugins

    VS Code must have plugins

    VS Code must have plugins VS code become every developers favourite text editor because it has a lot of extension to expand the power to do different jobs. I listed some of the must of extensions that I have tried. 1. Python Extension 1.1. Python IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit…

  • Solve DNS problem

    Solve DNS problem

    Sometimes you may have an issue on your domain name but you do not know where is the problem.  This is a full tutorial to check the whole chain of your domain DNS. Check DNS in Terminal If you are using Mac, you can open Terminal app.  If you are using Windows, you can open…

  • WordPress error 2022

    WordPress error 2022

    Notice: Function register_block_script_handle was called incorrectly. The asset file for the “editorScript” defined in “contact-form-7/contact-form-selector” block definition is missing. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in Fix: open wordpress-web-folder/wp-content/plugins/contact-form-7/includes/block-editor/block.json Go to line 43. Change from:  To: Save and problem solve. _register_controls is deprecated since version 3.1.0! – WordPress error…

  • 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