Linux Basic Commands

Ini adalah senarai beberapa command asas untuk terminal Linux. Bagi command asas Raspberry Pi boleh rujuk Raspberry Pi Basic Commands.

1. List of currently installed cron jobs.

crontab -l

2. To add/modify/delete a job run.

crontab -e

3. Login to MySQL.

sudo mysql -u root -p

4. Show all MySQL Database.

show databases;

5. To use database.

use [database name];

6. Show all table in selected database.

show tables;

7. Show all MySQL User.

select user, password, host from mysql.user;

8. Show grants MySQL User.

show grants for 'exampleuser'@'localhost';

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.