Articles in the Linux Tutorials Category

how to switch current run level and about runlevel

init is not normally executed by a user process, and expects to have  a
process  id  of  1.
On startup init reads the /etc/event.d directory, each file describes a
job that should be managed.  This includes the particulars  about  what
binary  or  shell script code should executed while the job is running,
and which events …

Know hardware info using DMIDECODE command

dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This ta?
ble contains a description of the system’s hardware components, as well as other useful pieces of information  such  as
serial  numbers  and BIOS revision. Thanks to this table, you can retrieve this …

Linux Commands for USB Devices

lsusb  is  a  utility for displaying information about USB buses in the
system and the devices connected to them

list attached usb devices

~$lsusb

write extended usb device information to a file

~$sudo lsusb -v > usbinfo.txt

How to become a root or superuser in ubuntu

If you want to run a command with superuser or root  which deals with system files you can use
“sudo”
here sudo, sudoedit – execute a command as another user.sudo allows a permitted user to execute a command as the superuser or
another user, as specified in the sudoers file.
for examples :
admin@smartproteam$ …

About Linux Dedicated Server Hosting

Dedicated server means that you rent a web server from a hosting company along with necessary software and a reliable connection to the internet. The deciated server will be located in a data center of web hosting company.Dedicated server arises when you have a large scale mission critical website or …

Command yum

Yum :
Yum is an interactive ,rpm based,pakackage manager.It can automatically performs system updates.It also performs installation of new packages and removal of new packages.
Below are the yum manual
To list the yum options
$yum -h
To list the installed package that matches given string
$yum list httpd
To localate all packages that contain the string …

File Systems and Partitions using FDISK

fdisk (for “fixed disk”) is a commonly used name for a command-line utility that provides disk partitioning functions in an operations.
To check the connected storage on the linux partition ,type below command.
$fdisk -l
(it displays connected storage table details)
To create partition ,you need to run below commands
$fdisk /dev/sda2
arugments
n’ – to …

strip directory and suffix from filenames using basename

basename – strip directory and suffix from filenames.
Print  NAME  with  any leading directory components removed.  If speci? fied, also remove a trailing SUFFIX.
Example:
smartproteam@smartproteam:~$ basename /usr/local/
local
another example
smartproteam@smartproteam:~$ basename /var/log/messages
messages

simple Bash calculator on command line interface

Bash is a shell Command-Line Interface that is very popular in  Unix/ Linux. Like a shell on Unix, Bash is not a simple shell. It  has  lots of features.
One of the features of Bash can be used as a simple calculator. If you are in command-line mode, you do not …

few usefull text processing using “awk” with examples

1.print the latest file from a  directory
admin@smartproteam~$ls -ltr *.* | awk ‘{ f=$NF }; END{ print f }’
example2.txt
2.Adding double space to a  file
admin@smartproteam~$cat example2.txt | awk ‘NF{print $0 “\n”}’
whazzz you
12
223
1
12
433
4433
3.Print total number of  line  in a  file
admin@smartproteam~$cat example2.txt | awk ‘END{print NR}’
7
4.print line number 4 from a file
admin@smartproteam~$cat example1.txt | …