Archive

Archive for October, 2008

[ kill process in linux ]

10 October 2008 orang_letrik Leave a comment

How do I kill process in Linux.

::kill command::

1. Use this command.

# ps -ef | grep -i <your-target-process>

OR

# ps aux | grep <your-target-process>

e.g: # ps -ef | grep -i jboss

2. Then, choose your target Process ID

# kill 9821

OR

# kill -9 9821

note: -9 is special Kill signal, which kill the process

3. Done

::killall command::

1. Use this command.

# killall -9 <your-target-process>

e.g: # killall -9 firefox

Categories: [ linux commands ] Tags:

[ sendmail ]

10 October 2008 orang_letrik Leave a comment

Send email in linux. Just follow this commands:

1. # mail <recipient’s email>

e.g: abc@abc.com

2. # Subject: <your-subject-here>

3. <your-content-here>.

note: make sure finish the content with dot <.>

4. <CC>

Done

[ netsend on linux ]

10 October 2008 orang_letrik Leave a comment

Just follow this command:

# smbclient -M <your-host> <your-message>

Categories: [ linux commands ] Tags:

[ check SAMBA version ]

10 October 2008 orang_letrik Leave a comment

How to check SAMBA version.

# smbd -V

Categories: [ linux commands ] Tags:

[ burn ISO file ]

10 October 2008 orang_letrik 1 comment

How to burn ISO files.

1. Download ISO file

2. Right click on the file and choose Write to Disc

3. Click Write to execute the process

4. Done

Categories: [ ubuntu ] Tags: ,

[ mysql: manually delete ]

6 October 2008 orang_letrik Leave a comment

For Linux based, follow these steps:

1. GOTO: /var/run/mysqld
2. find your database name
3. right click and delete
4. done

[ mysql: create user ]

6 October 2008 orang_letrik Leave a comment

Use this commands:

  1. create user <your_user_name>;
  2. grant all privileges on <your_db_name>.* to ‘<your_user_name>‘@’localhost’ identified by ‘<your_password>‘ with grant option;
  3. flush privileges;

Note: grant all privileges on *.* blabla.. (for all access)

[ mysql-sedut.masuk ]

6 October 2008 orang_letrik Leave a comment

Please refer instructions below:

1. enter mysql

# mysql -u root -p
2. create database
# create database <your-db-name>;
# use <your-db-name>;
3. exit from mysql
# exit
4. use this command:
# mysql -u root -p <your-db-name> < <your-db-name>;
5. finish

Categories: [ database ] Tags: ,

[ mysqldump ]

6 October 2008 orang_letrik Leave a comment

To dump MySQL database:

1. #cd ~/<your-path>
2. use this command:
# mysqldump -u root -p <database-name> > <your-database>.SQL
3. done

Categories: [ database ] Tags: ,