my terminal commands

15 Sep 2022

image

As a daily linux user but not a sys admin or anything related, i thought to group all the commands that i find useful as a user

my best friends are whois and alias. the first tells me a short describtion of a command that iā€™m not familliar with and the latter saves my time by shortening long complicated commands.

obtain information specific to your Linux distribution.

lsb_release -a

change directory

cd

print name of current/working directory

pwd

list directory contents

ls

concatenate files and print on the standard output(terminal)

cat filename
mkdir directory name

remove a file

rm filename

remove a directory

rm -r directory name

create a file

touch filename 

open or create a file in genome editor

gedit filename

package and compress (archive) files in .gz format

gzip filename

extract compressed files in a gz format

gunzip filename

package and compress (archive) files in .tar format

tar cvf filename.tar files

extract files in .tar format

tar xvf filename.tar

package and compress (archive) files in .zip format

zip -r filename.zip files

extract compressed files in a ZIP archive

unzip filename

aliasing a command


alias aliasedName='COMMAND'

display one-line manual page descriptions

whatis

display the user manual of any command that we can run on the terminal.

man