Trending
Heat Index
Linux Beginner
 
Read More
220How-to-update-Kernel-version-on-CentOS-7
 
Read More
129Light-weight-Text-Editor-tools
 
Read More
136Linux-Route-Add-Command-with-examples

 
Read More
223How-to-create-Multiple-IP-Address-to-Single-Network-interface
 
Read More
107How-to-Install-Linux-Kernel-4.5-in-Ubuntu
Posts Tagged ‘echo’
Most Recent
 
Read More
March 29, 2016

Echo Command in Linux with Examples

Echo Command in Linux

Echo is a built in command for bash and C shells. It can be used to display a line of text on a standard output or it could able to append into a new file.

Syntax

echo <options> <contents>

To input a line of text and display on standard output

[root@linuxhelp Desktop]# echo Linuxhelp is a master in linux and Opensource Linuxhelp is a master in linux and Opensource To declare a variable and echo its value

We will declare a variable of x and assign its value to 10

[root@linuxhelp Desktop]# x=100

Echo its value:

[root@linuxhelp Desktop]# echo The value of varible x = $x The value of varible x = [...]
98
 
Read More
March 25, 2016

How to find whether Linux system is 32 bit or 64 bit in simple commands

To find whether Linux system is 32 bit or 64 bit in simple commands

In this article we will discuss how to find whether Linux system is 32 bit or 64 bit using the simple Linux commands.

File Command

This command helps to display the file type. Syntax file /sbin/init

Example

[user1@linuxhelp ~]$ file /sbin/init /sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped getconf Command

This command helps to displays the system configuration variables.

Syntax getconf LONG_BIT

Example

[user1@linuxhelp ~]$ getconf LONG_BIT 64 Uname command

The command uname -a [...]

23
Advertisment