Ubuntu useful terminal commands

*restart
sudo reboot
sudo shutdown -r now

*download a file
wget url

with output file
wget  -O /home/omio/Desktop/ "url"

After "apt-get install filezilla" I got an error. 
 dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem..
 "It is called when packages are broken, or the package installation is interrupted."
 To solve type "dpkg --configure -a", you can type again "apt-get install filezilla", it should work.

*list apps (Ubuntu 14.04 above)
 apt list --installed

*remove an app
sudo apt-get remove <application_name>

*VSFTPD, stands for Very Secure File Transfer Protocol Daemon
sudo apt-get install vsftpd

*learn ubuntu version
lsb_release -a

*add a new user
adduser username

*format a drive
mkfs -t ext4 /dev/xvde

*list mounted and unmounted partitions
blkid -o list

device     fs_type label    mount point    UUID
-------------------------------------------------------------------------------
/dev/xvda1 swap             (in use)       001165fe-3413-4769-bd8d-fe68e40f6921
/dev/xvda2 ext3             /              0bc5ca40-d881-4ec8-978d-c0f40254d29b
/dev/dm-0  swap             [SWAP]         6a21155b-c8da-4dab-957d-7ee266c7cdcb
/dev/xvde  ext4             (not mounted)  21316288-a4d6-4b8c-aa61-1d815e9896e1
root@FRA1000011971:~# blkid -o listblkid -o list
Invalid output format listblkid. Choose from value,
        device, list, udev or full


*mount
mount /dev/xvde /mnt/1tb-hd/

*about xampp server
sudo /opt/lampp/lampp start   # Start the Services
sudo /opt/lampp/lampp stop   # Stop the Services
sudo /opt/lampp/lampp restart   # Restart the Services

Bu blogdaki popüler yayınlar

SDLC - Software Development Life Cycle

@SerializedName and @Expose annotations