≡ Menu

linux user

Linux: HowTo Copy a Folder [ Command Line Option ]

I'm a new Linux user. How do I copy a directory or folder under Linux operating system using command line options and bash shell?
[click to continue…]

Linux Rename File Command

I'm a new Linux user. How do I rename a file called resumezzz.pdf to resume.pdf using Linux bash command prompt?
[click to continue…]

Linux / UNIX: Kill User Session

How do I kill all users session under Linux or UNIX operating system using command prompt?
[click to continue…]

Linux / UNIX: Untar / Extract a .lzma Tar Ball

I’ve downloaded a file called file.tar.lzma tar ball from the Internet but I am not able to open tar ball. How do I open or extract a .lzma file under Linux or UNIX like operating systems using command line options?
[click to continue…]

Samba Restrict File Sharing To Particular Users or Network Addresses

All my local Linux user accounts will be able to log in to my Samba server and access share. How do I restrict access to particular users or network subnet such as
[click to continue…]

Linux Create User Account

Q. How do I create create a new Linux user account ? How do update or modify default Linux new user information? Using the command prompt (shell) tools, how do I add a user to the system? What are command line options for adding a user?
[click to continue…]

Monitor Linux user activity in real time

Q. How do I Monitor Linux User Activity in real time?

A. The whowatch program scans the most current common log file of Linux server and creates the following statistics in real time:

=> The users currently logged on to the machine, in real-time.
=> User login name,
=> User tty
=> User host name
=> User's process
=> The type of the connection (ie. telnet or ssh)
=> Display of users command line can be switch to tty idle time.
=> Certain user can be selected and his processes tree may be viewed as well as tree of all system processes.
=> Kill user process etc

I have already written how to install and configure whowatch. Please refer this previous article.

PHP not connecting to a MySQL database server

Q. I have Apache Web server and MySQL configured. Everything works fine except I am not able to connect to a MySQL database server (I am able to connect mysql server with mysql client). So how do I configure or connect PHP scripts?

A. You need to install MySQL module for php4 or php5. Without php-mysql shared object or module, php scripts won't able to connect to MySQL database server.

Debian / Ubuntu Linux User

To install type the following command:
# apt-get install php4-mysql
if you are using PHP5, enter:
# apt-get install php5-mysql

RHEL <= 4 user

If you are using Red Hat Linux:
# up2date php-mysql

If you are using Fedora / CentOS / RHEL 5 Linux:
# yum install php-mysql
Restart apache to take effect. Now you will be able to connect MySQL via PHP scripts.
# service httpd restart

Linux Partition Naming Convention ( IDE Drive Mappings )

Q. I am new to Linux and I not able to understand /dev/hdc (is it C: drive?) under Linux. This is quite confusing for a new Linux user like me. What device naming convention followed by Linux? Can you explain it in layman's term?
[click to continue…]

Commonly used UNIX / Linux commands by new user

Q. . I'm a new Linux user. Can you tell me commonly used Linux / UNIX command?
[click to continue…]