Skip navigation

– Extract tar.gz files
> tar –xvzf FILE_NAME.tar.gz

– Compress to tar.gz
> tar –cvzf OUTPUT_FILE_NAME.tar.gz FOLDER_OR_FILES_BEING_COMPRESS/

– Extract tar.bz2 files
> tar –xvjf FILE_NAME.tar.bz2

– Compress to tar.bz2
> tar –cvjf OUTPUT_FILE_NAME.tar.bz2 FOLDER_OR_FILES_BEING_COMPRESS/

– Start/Restart network
> /etc/init.d/network [start|restart]

– Force kill process
> kill -9 [PID]

– Show services/process
> ps aux

– Show services/process with filter
> ps aux | grep [FILTER]

– SSH
> ssh [USERNAME]@[HOST/IP] <enter then enter pasword>

– Change files or folder owner (must as root)
> chown USERNAME:GROUP FILE_NAME_OR_FOLDER_NAME

– Change folder owner and it’s subdirectory (must as root)
> chown -R USERNAME:GROUP FOLDER_NAME

– Start Mysql service on openSuse 11
> service mysql start (as root)
then type “mysql” to login into Mysql

– SCP , transfer files over network
(for single file)
> scp [USER@HOST:]SOURCE_FILE_NAME USER@HOST:DESTINATION_DIRECTORY
(eg. “> scp Twilight.avi root@168.27.10.200:/home/root/movie“)
then enter destination password.

(for directory with multiple files)
> scp –r [USER@HOST:]SOURCE_DIRECTORY_NAME USER@HOST:DESTINATION_DIRECTORY
(eg. “> scp –r Movies budi@140.27.10.240:/home/budi“)
then enter destination password.

Other samples:
“> scp –r budi@140.27.10.240:/home/budi/SexyImage .” , will copies “SexyImage” directory from user “budi” at “140.27.10.240” to our current directory. We need to provide user “budi” password.

– Remove folder
> rm -rf FOLDER_NAME

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: