Skip to content

CodeFatherTech

Learn to Code. Shape Your Future

  • Blog
  • Courses

Blog

CodeFather is the place where people from all over the world learn to code and build knowledge that helps them shape their future.

This blog is here to teach programming in a practical and effective way that will give you the confidence to make even a bigger difference in your current job, to look for your dream job or to build your own dream project.

SCP Linux Command: Learn How To Transfer Files

December 8, 2024March 30, 2020 by Claudio Sabato

Copying files between Linux systems is very common. In this article you will learn how to copy files in a secure way using the SCP command on Linux (and Unix-like systems). What is the SCP Linux command? The protocol used for copying files between computers is SCP (Secure Copy Protocol) that is based on the … Read more

Categories Blog Tags Learn Linux Leave a comment

How do I check if a file or directory exists using Bash?

December 8, 2024March 19, 2020 by Claudio Sabato

In Bash scripts is very common to check if a file or a directory exist. How do you check if a file or a directory exists using Bash? In Linux everything is a file. You can use the test command followed by the operator -f to test if a file exists and if it’s a … Read more

Categories Blog Tags Learn Bash Scripting Leave a comment

How to Create a Symbolic Link in Linux

December 8, 2024March 18, 2020 by Claudio Sabato

Have you ever heard about the concept of symbolic link in Linux? You might have heard the word symlink instead…they are the same thing. What is a symbolic link? A symbolic link in Linux (or Unix-like operating systems) is a shortcut to a file or directory. You can use it to simplify the way you … Read more

Categories Blog Tags Learn Linux Leave a comment

How do I use the cURL command in a Bash Script?

June 27, 2025March 8, 2020 by Claudio Sabato

Using the cURL command in a Bash script can be useful, but why? We live in the era of APIs… …you ask for data and you get it back… But how can you know if your API request is successful? HTTP response codes are able to tell you that, for example, a successful request is … Read more

Categories Blog Tags Learn Bash Scripting 4 Comments

How to Get the Directory of a Bash Script

June 27, 2025March 5, 2020 by Claudio Sabato

Have you ever tried to get the directory of your Bash script programmatically? It’s a common thing people ask and it can be done in different ways. The first thing to look at to solve this problem is the $0 variable, used in Bash to store the first element of the command executed. Create a … Read more

Categories Blog Tags Learn Bash Scripting 3 Comments

Exit a Bash Script: exit 0 and exit 1 Explained

June 27, 2025February 26, 2020 by Claudio Sabato

Why would you exit from a Bash script? Let’s say you are writing a script…there’s one thing that is almost certain… At some point, your script is likely to break because of unexpected conditions you might have not considered. So, what can you do about it? How can you exit a Bash script in case … Read more

Categories Blog Tags Learn Bash Scripting 1 Comment

How to Count the Lines of a File in Linux

December 8, 2024February 24, 2020 by Claudio Sabato

Knowing how to count the lines of a file or from the output of a command is a must in Linux. How to count the lines in a file with Linux? Linux provides the wc command that allows to count lines, words and bytes in a file or from the standard input. It can be … Read more

Categories Blog Tags Learn Linux Leave a comment

Loop Through the Lines of a File: Bash For Loop Explained

June 27, 2025February 24, 2020 by Claudio Sabato

I want to loop through the lines of a file with a Bash script and one of the ways to do it is using a for loop. What is a for loop? A for loop is one of the most common programming constructs and it’s used to execute a given block of code given a … Read more

Categories Blog Tags Learn Bash Scripting 2 Comments

How can I pass arguments to a Bash script?

June 27, 2025February 16, 2020 by Claudio Sabato

In this article, we will create a simple Bash script and show how to pass arguments to it using the Linux command line. How can you pass arguments to a Bash script? Arguments passed to a Bash script follow the name of the script in the command line and they are separated from each other … Read more

Categories Blog Tags Learn Bash Scripting 4 Comments

Which command can I use to find files in Linux?

December 8, 2024February 12, 2020 by Claudio Sabato

You are using your Linux machine, you remember that somewhere you have some files you need…but how can you find your files using the Linux terminal? The Linux find command is the most common command used to find files using the Linux command line. It allows to find files anywhere on the filesystem and it … Read more

Categories Blog Tags Learn Linux 1 Comment
Older posts
Newer posts
← Previous Page1 … Page18 Page19 Page20 Next →

CONTACT US

Email: hello@codefather.tech

  • About Claudio Sabato
  • Privacy Policy
  • Terms and Conditions
  • Acceptable Use Policy
  • Affiliate Disclaimer
© 2025 CodeFatherTech

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

CodeFatherTech
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.