文章列表
1. How to use share folder in VirtualBox for Windows XP -> Ubuntu:
a. From VBox menu, Install Guest Additional first (your guest os should be running)
b. sudo mkdir /mnt/sf_xp
c. sudo mount.vboxsf sf_xp /mnt/sf_xp (mount.vboxsf command is available only if you installed Guest Addito ...
1.
SHOW USER(or SELECT USER FROM DUAL)
/
2.
SELECT USERNAME, USER_ID, PASSWORD FROM DBA_USERS ORDER BY USERNAME
/
3.
SELECT DEFAULT_TABLESPACE FROM USER_USERS
/
4.
SELECT TABLE_NAME, TABLESPACE_NAME FROM USER_TABLES <----- only find the current user tables.
/
5.
ALTER T ...
1. To launch a application in command-line without open a cmd window:
>start putty -load Ubuntu -l root -pw ***
2. copy /Y file1 directory2 ------ override without warning
xcopy /E/Q sonatype-work L:\sonatype-work ------ copy directory and its subdirectories without display file( ...
Ubuntu version
========================================================
uname -a
uname -r
Ubuntu rpm / VMware / root / java / vi / putty / jboss
========================================================
putty
-------------------
1. install ssh server in Linux;
$sudo apt-get install ...
Ubuntu9.10 boot by 'grub', to change the boot mode to text-mode, we just need to change boot settings in '/boot/grub/grub.cfg'.
a. #vim /boot/grub/grub.cfg, you will find section like:
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_gruben ...
1. Before user sign in, the '/etc/rc$runlevel.d/*' will be execute according the runlevel.
2. After user sign in, the Ubuntu9.10 will execute below scripts list below:
a. first, the global '/etc/profile' will be excuted;
b. second, '/etc/profile' will invoke '/etc/profile.d/*.sh';
c. third, '/ ...
1. primitive
typedef int Integer;
Integer i;
2. array
typedef int Arr[10];
Arr a, b, c;
3. function pointer
#include<stdio.h>
typedef int (*pfn)(int, int);
void main()
{
int max(int, int);
pfn p;
p = max;
printf("%d\n", (*p)(2,3));
}
How to define typede ...
1. gcc tbz ftp: ftp://ftp.int.ru/pub/FreeBSD/ports/i386/packages-8-stable/lang/
2. mount cdrom: mount /dev/hdc /mnt/cdrom
Install ttylinux in VritualBox
1. download http://ttylinux.net/Download/ttylinux-i686-12.2.iso.gz
2. create a new virtual machine in VirtualBox
3. insert ttylinux-i686- ...