fbpx

Ubuntu Commands FAQ

body of water between green leaf trees

In this article, you can find some of the most used Ubuntu server commands.

If you need help with any of these commands, please post in the comments.

How to list all installed packages on Ubuntu?

If you are using Ubuntu 14.04 or above, you can use this command

apt list --installed

How to unzip a zip file on Ubuntu?

First, install unzip

apt-get install unzip

Then use this command

unzip file.zip -d destination_folder
Continue reading “Ubuntu Commands FAQ”

How to View the Content of .tgz and .gz Files on Ubuntu

photo of leaves

On Ubuntu if you have a file compressed as .tgz you can check its contents with this command

tar -tf filename.tgz

Or if you have a .gz file and you want to check its contents, you can do so with this command

gzip -cd <filename> | more

I have not tested these commands on other Linux distributions but I guess they would also work.