Close

Centos

Linux – Zip and unzip files

To zip a single file a in linux gzip filename To unzip a single file in linux gunzip filename To compress a directory the command is tar -cf filename.tar filename filename.tar will be the new name of zipped file for filename. -cf means creat a file When compressing a directory […]

Read More

Linux – Help at the Command Line

Commands: man {command} info {command} pinfo {command}               # displays man pages in a slight differently user friendly format. man -k {search term}       # Searches all the search terms for the search-term, and lists all the man pages where there is […]

Read More

Linux – cat and nano

  Commands: cat nano         # This is a text editor. no need to learn this. vim is much better. Config files: n/a Notes: Here are some example using cat (as a text file creator rather than a file content’s outputter): example 1: $ cat <<EOF =>testfile […]

Read More

The Bash Terminal

In Linux, nearly all day to day tasks are performed inside a command line terminal, aka the bash terminal. There’s a few ways to access it depending on various circumstance. First of it depends on whether you are sitting in front of your Linux machine or you want to access […]

Read More

Give a user more priveleges using sudo

## Setting up and assign sudo priveleges The Sudo utility lets you give a users custom privileges so that they can run commands that they are not normally allowed to run. For example, only the root user can run the “Shutdown” command. But if you want give another user permission […]

Read More