Sunteți pe pagina 1din 2

ASSIGNMENT 1--(Answers)

1......
2. Typing guest in username place and guest123 in password place alos us to logi
n.
3.Right click on desktop and press open teminal. then we type echo $SHELL .
4.chsh -s /bin/sh
5.mkdir test
cp -r /etc test
6.mv test test1
7.cp -r test1 /tmp
9.cd /etc df
10.cd / partition
cat /proc/meminfo
11. useradd guest1 for guest1 user and
useradd guest2 for guest2 user.
12. passwd guest1
guest123 and
passwd guest2
guest123
13.locate passwd

16.cd /etc df

18. a) cat /proc/cpuinfo


b) cat /proc/meminfo
19. ps
21. userdel guest1
userdel guest2
rm -r guest1
rm -r guest2
22.
1) ssh -Securely log a user into a remote system and run commands on tha
t system.
2) scp - (secure copy)Securely copy files between hosts on a network, us
ing ssh.
3) netstat -it Shows network status.
4) ipconfig - internet protocol configuration.It displays the configurat
ion information.
5) ifconfig -ifconfig displays the current configuration for a network
interface.ifconfig is typically used at boot time to define the network address
of each interface on a machine. It may be used at a later time to redefine an in
terface's address or other parameters.
6) whois -Search a whois database for a domain name, IP address, or NIC
name.

7) host -System administration command. Print information about hosts o


r zones in DNS. Hosts may be IP addresses or hostnames; host converts IP address
es to hostnames by default and appends the local domain to hosts.

8) hostname -Set or display name of current host system. A privileged us


er can set the hostname with the nameofhost argument.

9) pwd - Print the full filename of the present working directory.


10) rm-(remove) Delete one or more files. rm is often aliased to rm -i.
mv- Move directory to be a subdirectory of existing directory.Move
files to directory.

23. 1) time - The time command runs the specified program command with th
e given arguments
2) which - Which takes one or more arguments. For each of its arguments
it prints to stdout the full path of the executables that would have been exec
uted when this argument had been entered at the shell prompt.
3) Cat - concatenate files and print on the standard output
4) find - search for files in a directory hierarchy
5) grep - Grep searches the named input FILEs for lines containing a
match to the given pattern.
6) Look - The look utility displays any lines in file which contain str
ing as a prefix.
7) Cd - To change the current directory.
8) Ps - It displays information about a selection of the active process
es.

S-ar putea să vă placă și