How to locate files and folders in Unix / Linux

In Unix and Linux systems, there are a few commands for finding files and folders. The most used are find and locate. In this article I will show you how to use locate properly, in order to find the files

How to use whereis to find command binariers and man pages

whereis is used for locating a file’s binary, source and its associated man page, in Unix and Linux. It is easy to use and displays a short output: $ whereis bash bash: /bin/bash /etc/bash.bashrc /usr/share/man/man1/bash.1.gz If you need to find

The first step in learning shell scripting

In this article I will explain you what the sha-bang (also known as shebang) is and will create and exec the Hello World script. What is the sha-bang (shebang)? The shebang is the “#!” at the head of your script.

Why to learn shell scripting?

There is a geek proverb saying “If you need to do a thing more than once, script it!“. A good sysadmin creates and uses a lot of scripts every day, in order to do its daily tasks easier next time.

How to grab process IDs (PIDs) in Linux / Unix

An user can send signals to processes by using the process ID (PID) or the process name. In this article I will show you how to grab the PIDs with pgrep and pidof. How to get a process ID (PID)

How to display process hierarchies with pstree in Linux

Pstree is a nice tool for listing process hierarchies. All the processes in the system can be displayed also by the ps command, but in some cases you may need to get a hierarchical process list. Used without any arguments,

How to manage services in Linux and FreeBSD

It is very important to know how to manage services in Linux/Unix systems, in order not to reboot the entire system when not necesarry. In this article I will show you how to start, stop, restart a service in the

How to restart the network service in Linux and FreeBSD

In Linux, every service can be rebooted. This is very usefull because you don’t need to restart the whole system, in order get the modifications applied. In this article I will show you how to reboot the network (or networking)

How to set bash as your default login shell in PCBSD

I am a Linuxer that moved to *BSD. Because I am used with the bash tricks, I will set bash as my user’s default login shell, in PCBSD 9.0 . Install bash with this command (if it is already installed,

How to create symbolic links and hard links in Linux/Unix

The hard links and the symbolic links, also known as symlinks or soft links are the link files in Unix and Linux systems. A link points to a file and when clicked, it will open the targeted file. The symlink



Subscribe to get the latest Linux news and how to guides directly on your e-mail!