Useful Linux Commands for Daily Use

Linux Cheat Sheet. (source:

Renaming Files

[user@korex ~]$ mv passwd fun

Move our data file into dir1

# move our data file into dir1
[user@korex ~]$ mv fun dir1

Uncompress tar.gz Archive File

# this will extract the filename.tar.gz to a directory, for example /opt folder.
[user@korex ~]$ tar -zxvf filename.tar.gz -C /opt

Eject Device

# eject using device name
[user@korex ~]$ eject /dev/cdrom

# eject using mount point
[user@korex ~]$ eject /mnt/cdrom/

About Agung Pambudi

I am a Blogger with passion in business.
    Blogger Comment
    Facebook Comment


Post a Comment