0% found this document useful (0 votes)
19 views

Ubuntu Command

The document shows commands used to update package lists, upgrade packages, install vsftpd FTP server, start and enable the service. It also shows networking configuration using ifconfig.

Uploaded by

2020 Recrutement
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Ubuntu Command

The document shows commands used to update package lists, upgrade packages, install vsftpd FTP server, start and enable the service. It also shows networking configuration using ifconfig.

Uploaded by

2020 Recrutement
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

cdac@cdac:~$ sudo apt update

[sudo] password for cdac:


Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Fetched 109 kB in 1s (104 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
cdac@cdac:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
snapd-login-service
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cdac@cdac:~$ sudo apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Fetched 109 kB in 0s (120 kB/s)
Reading package lists... Done
cdac@cdac:~$ sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
snapd-login-service
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 kB of archives.
After this operation, 336 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 vsftpd amd64 3.0.3-3ubuntu2 [115
kB]
Fetched 115 kB in 0s (307 kB/s)
Preconfiguring packages ...
Selecting previously unselected package vsftpd.
(Reading database ... 212721 files and directories currently installed.)
Preparing to unpack .../vsftpd_3.0.3-3ubuntu2_amd64.deb ...
Unpacking vsftpd (3.0.3-3ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (229-4ubuntu21.23) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up vsftpd (3.0.3-3ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.23) ...
cdac@cdac:~$ systemctl start vsftpd
cdac@cdac:~$ systemctl enable vsftpd
Synchronizing state of vsftpd.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable vsftpd
insserv: fopen(.depend.stop): Permission denied
insserv: fopen(.depend.stop): Permission denied
cdac@cdac:~$ sudo su\
>;
root@cdac:/home/cdac# systemctl enable vsftpd
Synchronizing state of vsftpd.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable vsftpd
root@cdac:/home/cdac# ifconfig
enp0s25 Link encap:Ethernet HWaddr 78:e3:b5:97:95:b6
inet addr:10.228.10.39 Bcast:10.228.11.255 Mask:255.255.254.0
inet6 addr: fe80::74e3:11f9:73ab:e74e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8594010 errors:0 dropped:0 overruns:0 frame:0
TX packets:3956291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12912732783 (12.9 GB) TX bytes:278958213 (278.9 MB)
Interrupt:19 Memory:f0400000-f0420000

lo Link encap:Local Loopback


inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5395 errors:0 dropped:0 overruns:0 frame:0
TX packets:5395 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1389882 (1.3 MB) TX bytes:1389882 (1.3 MB)

You might also like