Wednesday 29 November 2017

How to view hidden files such as .bash_profile in WinScp (Linux)

If you are using a graphical file system browser such a WinScp,  you may need to switch it to display hidden files by pressing the key combination (Ctrl+H).

Monday 27 November 2017

How to check CPU info on a Linux machine

Hi,

You can use the below command to see the CPU info for a linux machine:-

$ cat /proc/cpuinfo


How To Check RAM Size for Redhat Linux Desktop System

Hi,

You can use the below command to check the RAM Size:

$ cat /proc/meminfo

Linux command to check disk space

Hi,

You can use below command to check disk space on a linux server:-

# df -h

Here, the -h option is to see output in human readable format. You will see the device size in terabytes or gigabytes or megabytes!

Additionally, you can use the below command:

# du

to see the amount of disk space used by the specified files and for each sub-directory.

How to Check if Your Linux System is 32-bit or 64-bit

Hi,

You can check whether your linux system is 32-bit or 64-bit by running the below command:-

# uname -m

An output such as below,
x86_64
means that your linux system is 64 bit!

Alternatively, an output such as below,
x86
means that your linux system is 32 bit!


How to switch between users on one Linux terminal

Hi,


Below are two common ways to switch between users on one linux terminal:

1. Using su command:-

$ whoami
UserName1
$ su - UserName2
Password:
$ whoami
UserName2

To logout:
$ exit
logout

If you want to login as root, you obviously  can do it by the above method. All you have to do is not to specify any username.

$ whoami
UserName1
$ su
Password:
$ whoami
root

2. Using sudo command (provided it is installed)

How to find which version of Oracle is installed on a Linux server

Hi,

There are several ways to find which version of Oracle is installed on a Linux server.
And, one of the easiest method is as follows:-

1. Connect to the Oracle DB via Oracle SQL developer

2. Open SQL Worksheet against any of the schema

3. Type the below query:

select * from v$version where banner like 'Oracle %';
The response will be something like below:-


4. From the above result, you can see that the DB version is 11.2.0.4.0

5. Done!!