EX200 S
EX200 S
EX200 S
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24
Gateway172.24.40.1
DNS:172.24.40.1
Answer: # cd /etc/syscofig/network-scripts/
# ls
# vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40
GATEWAY=172.24.40.1
DNS1=172.24.40.1
# vim /etc/sysconfig/network
(Configure Host Name)
HOSTNAME= station.domain40.example.com
OR
Graphical Interfaces:
System->Preference->Network Connections (Configure IP Address, Gateway and DNS)
Vim
/etc/sysconfig/network
(Configure Host Name)
The requirements: The Additional group of the two users: harry, Natasha is the a
dmin group. The
user: tom's login shell should be non-interactive.
Create a catalog under /home named admins. Its respective group is requested to
be the admin
group. The group users could read and write, while other users are not allowed t
o access it. The
files created by users from the same group should also be the admin group.
Answer: # cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/
Configure a task: plan to run echo hello command at 14:23 every day.
Answer: # cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
Find the rows that contain abcde from file /etc/testfile, and write it to the fi
le/tmp/testfile, and the
sequence is requested as the same as /etc/testfile.
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)
Create a user named alex, and the user id should be 1234, and the password shoul
d be alex111.