Show/Hide Hidden Files using Terminal Aliases

A Terminal alias is a name or shortcut for one or multiple commands. Using an easy to remember alias, we can turn the above four step process into just one.

An alias can be made temporarily (just for the use of one terminal session) or permanently. As we want this to be a shortcut used now and in the future, let’s make it permanent:

  1. Open Terminal found in Finder > Applications > Utilities
  2. In Terminal, paste the following: sudo nano ~/.bash_profile
  3. Enter your Mac’s administration password if required, then hit return
  4. At the bottom of the open .bash_profile file, paste the following: alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
  5. Below that, paste the following: alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
  6. Press ctrl + O and hit return to save the file
  7. Press ctrl + X to exit the file and return to the command line
  8. In Terminal, paste the following: source ~/.bash_profile to refresh your profile and make the aliases available

Now when you want to show hidden files, all you need type in Terminal is showFiles, then hideFiles when you want to hide them.

If you want to modify the behaviour or alias names, let’s take a closer look at the commands you just added:

alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES;
killall Finder /System/Library/CoreServices/Finder.app'

alias tells Terminal we’re adding a new alias.

showFiles is the name of the alias. Change this to what you wish.

We then give the alias two commands. The first being:

defaults write com.apple.finder AppleShowAllFiles YES;

This is the command to show hidden files and is ended with a semi-colon ; so we can then use the second command:

killall Finder /System/Library/CoreServices/Finder.app

This will relaunch the Finder (to replicate the step of holding the ‘Option/alt’ key then right clicking the Finder icon in the dock).

C Programming Language Tutorial

C language Tutorial with programming approach for beginners and professionals, helps you to understand the C language tutorial easily. Our C tutorial explains each topic with programs.

The C Language is developed for creating system applications that directly interact with the hardware devices such as drivers, kernels, etc.

C programming is considered as the base for other programming languages, that is why it is known as mother language.

It can be defined by the following ways:

  1. Mother language
  2. System programming language
  3. Procedure-oriented programming language
  4. Structured programming language
  5. Mid-level programming language


1) C as a mother language

C language is considered as the mother language of all the modern programming languages because most of the compilers, JVMs, Kernels, etc. are written in C language, and most of the programming languages follow C syntax, for example, C++, Java, C#, etc.

It provides the core concepts like the array, strings, functions, file handling, etc. that are being used in many languages like C++, Java, C#, etc.


2) C as a system programming language

A system programming language is used to create system software. C language is a system programming language because it can be used to do low-level programming (for example driver and kernel). It is generally used to create hardware devices, OS, drivers, kernels, etc. For example, Linux kernel is written in C.

It can’t be used for internet programming like Java, .Net, PHP, etc.


3) C as a procedural language

A procedure is known as a function, method, routine, subroutine, etc. A procedural language specifies a series of steps for the program to solve the problem.

A procedural language breaks the program into functions, data structures, etc.

C is a procedural language. In C, variables and function prototypes must be declared before being used.


4) C as a structured programming language

A structured programming language is a subset of the procedural language. Structure means to break a program into parts or blocks so that it may be easy to understand.

In the C language, we break the program into parts using functions. It makes the program easier to understand and modify.


5) C as a mid-level programming language

C is considered as a middle-level language because it supports the feature of both low-level and high-level languages. C language program is converted into assembly code, it supports pointer arithmetic (low-level), but it is machine independent (a feature of high-level).

Low-level language is specific to one machine, i.e., machine dependent. It is machine dependent, fast to run. But it is not easy to understand.

High-Level language is not specific to one machine, i.e., machine independent. It is easy to understand.

C Program Example

In this tutorial, all C programs are given with C compiler so that you can quickly change the C program code.

File: main.c

  1. #include <stdio.h>  
  2. int main() {  
  3. printf(“Hello C Programming\n”);  
  4. return 0;  
  5. }  

Create a Gmail Account

  1. Visit Create your Google Account for Gmail.
  2. Enter your first and last name in the Name section.
  3. Type your desired username under Choose your username.Your Gmail email address will be your username followed by “@gmail.com.” If your Gmail username is “example,” for instance, your Gmail address is “example@gmail.com.”
  4. Enter a password for your Gmail account under both Create a password and Confirm your password. Pick an email password that is difficult to guess.For enhanced security, you should later enable two-factor authentication for your Gmail account.
  5. Click Next.
  6. You are asked to verify your phone number. You can skip this step if you prefer.
  7. Enter your mobile phone number and an alternate email address for account verification and authorization. Google uses this information to protect your privacy and to allow you to recover a lost password.
  8. Enter your birth date and gender in the fields provided.
  9. Click Next.
  10. Read and the Privacy and Terms and then click I Agree to continue.
  11. That’s it. You’re done. Once you click I Agreeyou’re taken to the My Account page for the email address you just created. From there, you can sign into your account, manage your personal information, and set your account preferences.

Access the Gmail Account and Your Other Existing Email

You can access Gmail on the web, and you can also set it up in desktop and mobile email programs. There are Gmail apps for Windows 10iOS and Android mobile devices. Just download the app compatible with your device and sign in. Gmail lets you access your other existing POP email accounts, both for sending and receiving mail.

What is Facebook Pixel and How it is work?

A Facebook pixel is an analytics tool to check the effectiveness of your Facebook advertising. By installing it into your website, you can truly see your ads’ performance because the pixel can track every users’ interactions on your website after a click on your ad.
When someone clicks on your website from an ad and takes an action, like purchasing any product, your Facebook pixel will trigger and report about the action to you in Facebook Ads manager.

The Facebook pixel gives you deep insight into your marketing strategy because it checks your ad’s conversion rate. This adds have another layer of analytics that gives you a clear picture of your buyer’s journey from ad to purchase a product. For example, if one of your ads’ click-through-rate is high, but the conversion rate is low, then your ad creative and landing page probably aren’t aligned.

What Actions Can a Facebook Pixel Track?
When someone takes an action on your website after clicking on an ad, your Facebook pixel records it as an event.

Facebook can track 9 of them:

  • View content – Track key page views of the article, landing page, product page.
  • Search – Track products on your website for searches.
  • Add to cart – Track when items are added to cart.
  • Add to wishlist – Track when items are added to wishlist.
  • Initiate checkout – Track when people enter your checkout flow.
  • Add payment info – Track when people add payment information during the checkout flow.
  • Make a purchase – Track purchases or checkout flow completions
  • Lead – Track when someone becomes a lead like a form submission, sign up for a trial, etc.
  • Complete registration – Track when someone completes a registration form.

How to Create a Facebook Pixel
On February 15, 2017, Facebook combined the conversion tracking pixel and the custom audience pixel and create a Facebook pixel, which means they no longer support the old conversion tracking pixel for ad creation. If you installed a conversion tracking pixel before then, you need to install the new Facebook pixel.

What is HTML?

HTML is the standard markup language for creating Web pages.

  • HTML stands for Hyper Text Markup Language
  • HTML describes the structure of Web pages using markup
  • HTML elements are the building blocks of HTML pages
  • HTML elements are represented by tags
  • HTML tags label pieces of content such as “heading”, “paragraph”, “table”, and so on
  • Browsers do not display the HTML tags, but use them to render the content of the page

Example Explained

  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <title> element specifies a title for the document
  • The <body> element contains the visible page content
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph