Useful Linux Commands for Daily Use

Posted by Agung Pambudi in ,
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/

No comments:

Post a Comment