POFTUT – Page 106 – Linux, Windows, Security, Programming, Network Tutorials



How To Check Memory Usage Of Linux?

Linux operating system is popular with its efficient memory usage. Also Linux operating systems provide a lot of details about their memory usage. In this tutorial we will look into details of the memory usage information. There are different ways to get memory usage information. Alternatively we can call this RAM usage. Because in the static most of the information is  about RAM Get Information With free free is very easy and...


How To Get Ram Size In Linux?

What are the ways to get ram size in Linux operating system? Here is some methods to find ram size in Linux operating systems like Ubuntu, Debian, Fedora, CentOS, Red Hat. Getting Ram Size With meminfo Proc file system provides coonfiguration information about the current opoerating system. We can get information from direcly kernel provided /proc/meminfo . We can see a lot of information parameter with meminfo

As we see there...


How To Get CPU (Central Processing Unit) Info and Number of CPU’s In Linux?

CPU is central part of the computer systems.  They provide all logic and computation power to the operating system that runs on them. In general we look the frequency and brand of the CPU like i5,i7. There are very different features in detail in CPU’s. There are different commands to get CPU’s information like flags, instruction, product name etc. But most compatible CPU information source is /proc/cpuinfo Getting Information From /proc/cpuinfo...


How To Create Fast Simple Database and Table With Php and Sqlite

Php is web programming language very popular among developers. Php is actually a scripting language which means there is no need to compile the code to run. So write and run is the motto of php language. Php scripts can be run on Linux systems like bash, Perl scripts too. Some administrators with development background prefers php for scripting because php offers more than bash scripting. SQlite is an other...


How To Get System Serial Number, Manufacturer and Product Name In Linux with dmidecode Command?

I have a lot of systems work in data center. I have started to create inventory about this servers. I want to be everything is documented in this inventory. There are different tools to get information about the system chassis. In this tutorial we will look how to get information about chassis serial number, manufacturer and product name. Get System Serial Number System serial number is given by manufacturer to...


How To Get Host Name and Domain Name Of Linux?

Host name is the identifier of a system in the network. Host name can be get with different ways in Linux. Host name is generally put in the /etc/hostname file. Get Host name By Echoing Host name File Host name information is stored in a file /etc/hostname . So we can simple print the host name to the terminal with echo command like below.

Get Host name With hostname Command We...


How To Get Ram Information In Linux?

We have a lot of servers. There are different type of vendors and products. Tracking them about theirs hardware is hard work. For example to get ram information by opening all cases of servers is impossible. Here comes Linux magic. Linux provides a lot of commands. We can use dmidecode like below. Getting Information With dmidecode dmidecode is very useful command which can provide information about hardware of the system....


How To Create User Creation Defaults With Skel In Linux?

We want to create system default for user creation and addition. System defaults mean what will be default values for the user creation like home path, user id etc. skel Directory /etc/skel is the directory where files will be copied to the new user directory from here. If we look detailed we will see that there are some default files in it.

All these .bashrc .bash_logout and .bash_profile files will be copied newly created user...


How To Allow Normal User Run Commands As Root In Linux with sudo Command?

We have an application that needs higher privileges than normal user. This application may be run with root user. But we need to run this application with normal user with root privileges. Sudo Command sudo command is used to elevate user privileges to higher. Generally used to run commands as root user. Commands issued with sudo  are logged into /var/log/auth.log In this example we will print the /etc/shadow file which is...


Which Groups Belong To A User In Linux

How to find the user or myself belongs to which group? Because group is important for the folder and device access permissions. One user can be join multiple or single group. We can get our current group membership or another user group membership. Who Am I? First when we log in a system we may want to get our username and user account related information. We will use whoami command....

Enjoy this blog? Please spread the word :)