Update the local CVS repository
Answer:
To update the local working CVS repository, you can use the command:
# cvs update -P
The -P flag is useful as it prune empty directories.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Update the local CVS repository
Answer:
To update the local working CVS repository, you can use the command:
# cvs update -P
The -P flag is useful as it prune empty directories.
How to install Easy Install for Python in Ubuntu
Answer:
EasyInstall is a package manager for the Python programming language that provides a standard format for distributing Python programs and libraries (based on the Python Eggs wrapper).
To install the EasyInstall under Ubuntu, type:
# sudo apt-get install python-setuptools python-dev build-essential
List all installed package in Ubuntu
Answer:
To list all the installed packages in Ubuntu, so you try the "dpkg -l" command:
E.g.
# dpkg -l
Drop all tables in MySQL database
Answer:
MySQL does not have a command for removing all database table(s) without dropping the database, to do so, you need the following tricks:
# mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE]
| grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE]
Use of ASP like tags in PHP
Answer:
In PHP, you can use ASP-like <% %> tags in addition to the usual <?php ?> tags. But you need to enable it before use.
You need to editing the php.ini
vi /etc/php.ini
And set
asp_tags = 1
Restart your web server if needed.