Chapter 7 Shell Script Interview Questions 1. How will you write a shell script to connect to MySQL and SQL database? Connect to MySQL database: # connect to test database and query the EMP table select * from $TABLE_NAME; UID: User ID GUI: Group ID They are used for a first-cut security in Unix systems in that files and programs can be restricted to certain groups or to certain users. Groups are kept in the /etc/group file users and the group they belong to are kept in the /etc/passwd file. To find a user's UID or GID in Unix use the id command.
Read full article from Chapter 7 Shell Script Interview Questions - Job search and interview, author Jiansen Lu
No comments:
Post a Comment