Category Archives: Basic Linux

this categories in include basic Redhat Linux article

How to Write and compile C Programs in RedHat Linux Server

Hello guys in this tutorial we are going to learn how to write and Compile C program in RedHat Linux Server.Its a very simple process you just need to following Simple Steps. At Fast we will Install C Compiler in Linux Server. we will install C Compiler through Yum Server. If you don’t have any idea about YUM server so please click and look how to install yum server in Redhat LInux Serverc labguage Step 1 Here i accept you configure YUM server in redhat linux, then we will install C -Compiler t through below Commands

[root@localhost ~]# yum install gcc* -y 

Step 2 then we will write C Program like this

[root@localhost ~]# vim vishnu.c
void main()
printf("hello this is my linux server c programming demo');

Step 3 then we will compile Program below Commands

[root@localhost ~]# gcc vishnu.c -o cprogram

Step 4 now if we don’t found any error in this  program then we will run below commands 

[root@localhost ~]# ./cprogram
hello this is my linux server c programming demo

if you have any Problem in this process please comments here i will solve your problem

Thank you

Vishnu Sharma


How to broke/Split any file in redhat Linux Server

hello guys today we will learn how can we split any file in our linux machine its a very simple method .before we know why we split any file some time we need to send  any important data through E-mail but our data is very large. so we cant’t send through Email .so we can broke many parts in our data file and send. receiver will be collect all broke data file and make original data file. that plus point is we can split any extensions file like MP3, mp4, jpg .png.text .text PDF  everything .so let we will start just follow mefile split

Step 1 before we will create any file in 200MB size and then we will split in nine (9) parts 

[root@localhost ~]# dd if=/dev/sda of=demo.txt bs=2M count=100
100+0 records in
100+0 records out
209715200 bytes (210 MB) copied, 2.96287 seconds, 70.8 MB/s

now we have Demp.txt  file its size  is 210 mb .

Step2 now we will split in nine (9) parts through this commands 

( Note-Actually split commands is work on  bytes so  here we gave our split size 25000000kb )

[root@localhost expirment]# split -b 25000000 demo.txt
[root@localhost expirment]# ls
demo.txt  xaa  xab  xac  xad  xae  xaf  xag  xah  xai

Step3 now we will delete our demo.txt file

[root@localhost expirment]# rm -rf demo.txt
[root@localhost expirment]# ls
xaa  xab  xac  xad  xae  xaf  xag  xah  xai

here we dont’t have demo .txt file

Step4 now we can create original file through all broken parts   

[root@localhost expirment]# cat x*> demo.txt

when we will look our directory we found our demo txt file

[root@localhost expirment]# ls
demo.txt  xaa  xab  xac  xad  xae  xaf  xag  xah  xai

its a very useful and simple method if you have any problem in this method comments here i will solve your problem

Thank you

By Vishnu sharma

How to Compress and Decompress any file in Redhat Linux Server

hello friends today we will learn how to Compress and Decompress any file in Linux .Linux Server in File compression very powerful we can can Compress any file through many methods here i show you some Powerful method .You just follow simple step

compress data in linux

Step i create some text file and then i compress and compress through TAR method
[root@localhost ~]# touch a1.txt
[root@localhost ~]# touch a2.txt
[root@localhost ~]# touch a3.txt
[root@localhost ~]# touch a4.txt

Continue reading

How to open any ios file in Redhat linux

hello guys here we will learn how can we open any ios file in linux.Here we open iso file and copy some data or folder .it is very help full for linux because we can make YUM.(if u want to know what is yum ?and how to configure redhat linux server so click on link)  And we can also install important packge in linux .so it is very important how to open iso file in redhat linux. If u want to know how can we receive iso file in linux so click how can we transfer windows file in linux .when we receive iso file we will open like this Continue reading

How to create user and group in linux redhat server

hii guy today we will learn and discuss that how can we create group and user in linux server and also learn how to provide  different -2 permission every user or group on specify  file .For example we look any company or organisation  employ schedule in some person can read only schedule .but some person can manipulation in schedule .so we will learn how to do it basically like this work depend on read ,write. execute permission . Continue reading

how to configure file security in linux redhat

hello guys today we will discuss about file security in Linux redhat .we can configure file password very easy. this process in we can provide file password before file create and after file create .so let we start how to possible this before we will make one simple text file through VIM commands Continue reading

How to create a text file in linux redhat

this tutorials in we learn how to create simpl text file in linux  we follow just simple cmd or put code in linux

# vim hello.txt    (we can create simple text file to vim cmd  when we put enter then we look some file look space on desktop then we push ( I ) later through keybord after we can write aney data or matter in file when we complet our work then we push Ese key then push ( : )

then if we press (w q ) w q is for file saving

wq  is  seve and exit file

q  is only exit file without aney save and changeing

we can also create file touch  cmd through

# touch hello

# touch demo.txt