What we’ll cover in this article is how to identify permissions for files & directories and how to change them, as well as changing ownerships, groups, etc. Depending on what you want to do, you’ll want to make sure you have the appropriate permissions (obviously), so let’s find out how to change them. Let’s startContinue reading “Managing File permissions and ownerships”
Category Archives: Linux (Ubuntu/CentOS)
cd and pwd command examples
15 Practical Examples of ‘cd’ Command in Linux In Linux ‘cd‘ (Change Directory) command is one of the most important and most widely used command for newbies as well as system administrators. For admins on a headless server, ‘cd‘ is the only way to navigate to a directory to check log, execute a program/application/script andContinue reading “cd and pwd command examples”
How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux ( bz2 and gz ) ( bzip2 and gzip )
Data compression has been extremely useful to us over the years. Whether its a zip file containing images to be sent in a mail or a compressed data backup stored on a server, we use data compression to save valuable hard drive space or to make the downloading of files easier. There are compression formatsContinue reading “How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux ( bz2 and gz ) ( bzip2 and gzip )”
Format, mount and unmount a USB drive in Linux
execute the mount command without any arguments to view all the mounts: #mount rootfs on / type rootfs (rw) /dev on /dev type tmpfs (rw,relatime) /dev/disk/by-uuid/c4f411af-56b1-4ecc-b85e-a0173aa9dc30 on / type ext4 (rw,noatime,data=ordered) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=490760k,nr_inodes=122690,mode=755) tmpfs on /run type tmpfs (rw,relatime)Continue reading “Format, mount and unmount a USB drive in Linux”
How to Manage Files from the Linux Terminal
Create Directory – subdirectory, other than that What mkdir command do in Linux After knowing about ls command for listing entries inside directory, we are now moving to creating directory in Linux system. On Linux, we can use mkdir command. Mkdir is short for “make directory”. What is mkdir Mkdir is a command for creatingContinue reading “How to Manage Files from the Linux Terminal”
Adding Linux Users and Groups
What we’ll cover in this article is adding and deleting users, as well as modifying exiting users. We’ll then focus on groups and how to add/delete them. I will also point out key files that are associated with this process for those of you that are new to Linux or are looking to pass someContinue reading “Adding Linux Users and Groups”
Linux Network Configuration and Troubleshooting Commands
Setup DNS Resolution With “resolv.conf” in Examples The /etc/resolv.conf configuration file contains information that allows a computer to convert alpha-numeric domain names into the numeric IP addresses. The process of converting domain names to IP addresses is called resolving. When using DHCP, dhclient usually rewrites resolv.conf with information received from the DHCP server. How doContinue reading “Linux Network Configuration and Troubleshooting Commands”
How to Get Help With a Command from the Linux Terminal: 8 Tricks for Beginners & Pros Alike
Whether you’re an inexperienced terminal user or a grizzled veteran, you won’t always know the right thing to type into the Linux terminal. There are quite a few tools built into the terminal to help you along. These tricks will help you find the command to use, figure out how to install it, learn howContinue reading “How to Get Help With a Command from the Linux Terminal: 8 Tricks for Beginners & Pros Alike”
A Shell Script to Monitor Network, Disk Usage, Uptime, Load Average and RAM Usage in Linux
The duty of System Administrator is really tough as he/she has to monitor the servers, users, logs, create backup and blah blah blah. For the most repetitive task most of the administrator write a script to automate their day-to-day repetitive task. Here we have written a shell Script that do not aims to automate theContinue reading “A Shell Script to Monitor Network, Disk Usage, Uptime, Load Average and RAM Usage in Linux”
Assign values to shell variables (PATH variable)
Creating and setting variables within a script is fairly simple. Use the following syntax: varName=someValue someValue is assigned to given varName and someValue must be on right side of = (equal) sign. If someValue is not given, the variable is assigned the null string. How Do I Display The Variable Value? You can display theContinue reading “Assign values to shell variables (PATH variable)”