General Flashcards

1
Q

How to check weather apache is installed?

A

dpkg -l | grep apache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

check what os is using?

A

cat /etc/issue OR cat /etc/*-release

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

verify network IP address?

A

ifconfig -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

verify internet connectivity by running ‘ping’ against a domain name

A

ping -c 4 eimage4u.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

verify machine hostname with what commands?

A

cat /etc/hostname
cat /etc/hosts
hostname
hostname -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

to enable or disable init daemons on run-levels?

A

sysv-rc-conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

To start, stop or verify a service (daemon) run the following commands:

A

sudo service service_name restart
OR
sudo /etc/init.d/ service_name start|stop|restart|status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

see server processes, open connections, run the following commands:

A

ps aux | grep service_name
sudo netstat -tulpn
sudo slof -i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

to update system, run the following command(s):

A

sudo apt-get update && sudo apt-get upgrade

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

using one single command to install LAMP on ubuntu server

A

sudo apt-get install apache2 php5 php5-mysql mysql-client mysql-server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Install a package with apt, run the following command(s):

A

sudo apt-get install nmap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

remove a package with apt, run the following command(s):

A

sudo apt-get remove nmap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

update the package index, run the following command(s):

A

sudo apt-get update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

upgrade package, run the following command(s):

A

sudo apt-get upgrade

How well did you know this?
1
Not at all
2
3
4
5
Perfectly