Linux Commands
Linux Commands
Need to do test but proper if not we need to do role back it needs more time and
tougher too.
Admin will assign all roles and responsibilities
Networking is used to connect serve and data is connected to packets for transfer.
whenever network has any problem server is down.
it'll be transfered in packets
1 packet= 8kbytes
LINUX COMMANDS
hostname
hostname -i or ifconfig -- ip address
free -m RAM space in MB
free -g RAM space in GB
top Task manager
df -h disk space
ls list of commands
pwd Print working directory
du -sh * size of all directories
du -sh * directory name size of particular directory
chmod change mode
chown
mode numbers are
777 full permissions to everyone
755 full permissions to owner
655 only owner
444 read permission
rm remove
rmdir remove directory
stat directory name date created
who to know connected users
cal to know calendar
date to know present day date
echo it'll present message on screen
Example:-
d=`date`
echo "$d"
d=`date "+" %F` only date
d=`date "+" %f %h`
In vi
:/searinh word
: set nu set numbers for every line
: %s/apple/india/gic replaces apple to india
g-substitution
i-case sensitive
c-confirmation
: %s/a/b/gic replaces a to b
: %s/$/;/g to end all lines with ;
: %s/^/1/g to add a line with 1
awk '{print $2 ;}' job >out1.sql prints the second coloumn in every line