Please enable JavaScript.
Coggle requires JavaScript to display documents.
Commands lec 8 - Coggle Diagram
Commands lec 8
hostname
Shows information
about machine
hostname -i
(for IP)
hostname -f
fully qualified domain
name (FQDN)
hostname -s
short hostname
up to first '.'
hostname -a
alias name
of host
hostname -d
domain name
DNS
echo
echo "message"
Gives Standard
Output
echo "msg" > file
Write to
a file
echo "msg" >> file
Add to
a file
echo > file
To empty
a file
yum
yellowdog updater
modified
Install, Update,
Remove packages
yum install tree
yum update [pkg]
yum update -y
update all
packages
yum remove [pkg]
yum list installed
shows all installed
packages
service
Status of service
service [pkg] status
Start a Service
service [pkg] start
Stop a Service
service [pkg] stop
chkconfig
chkconfig [pkg] on
Keep service opened
even after restart
chkconfig [pkg] off
close the configured
service
ifconfig
networking
information
ipconfig (Windows)
which
which [pkg]
check for a
package
whoami
Tells the name
of the user
grep
finds words or
pattern in a file
grep [pattern] /dir1/file
sort
sort all lines
of a file
sort file
more
show content of a
file page-by-page
more file
tree
shows dir
heirarchy