Archive for the ‘HOW TOs’ Category

Combination Generator in Java

combination genarator
A combination is an unordered collection of unique size. For example, if a list contains four numbers ( 1, 2, 3, 4 ), its combination of an unordered collection of unique size will be, , , , , , , , , , , , , , , . In shortly, Number of ways of selecting zero or more things from 'n' different things is given ... Full story

Delete OLD files in linux

delete old files in linux
If you want to delete log files or folders in /var/log directory which are older than 200 days then you can follow the below steps To list the files which are older than 200 days #find /var/log -mtime +200 After verifying ,you can delete those files/folders #find /var/log -mtime +200 -exec rm {} \; Full story

How to mount SFTP share in remote Linux machine

sftp
This could be implemented with FUSE and SSHFS. Download path: http://fuse.sourceforge.net/sshfs.html 1. FUSE package: fuse-2.8.5.tar.gz Extract and install #tar xvf fuse-2.8.5.tar.gz #cd fuse-2.8.5 #./configure #make #make install After successful installation,install SSHFS 2.SSHFS Full story

How to mount windows share in Linux

linux-windows
Some times you may want to use windows shares in Linux.So let s check out how to mount windows share in Linux in this article Full story

Converting from Ext3 to Ext2

Linux filesystem
There may come situations to convert Ext3 back to Ext2.For that follow this procedure # umount /dev/hda1 #tune2fs -O ^has_journal /dev/hda1 #e2fsck /dev/hda1 Then edit /etc/fstab for mounting at boot time as ext2 Edit /etc/fstab and change /dev/hda1 to mount type ext2 Full story

Recovering mysql root password

Mysql
If you lost your mysql root password then try the following steps. # /etc/init.d/mysql stop # mysqld_safe --skip-grant-tables --user=root Then from another shell,connect to mysql # mysql -u root Full story

ACL: Setting Access Control List for non privileged users

acl
There are two type of ACLs 1. Access ACL The user and group access permissions for all kinds of file system objects (files and directories) are determined by means of access ACLs 1. Default ACL Default ACLs can only be applied to directories. They determine the permissions a file system object inherits from its parent directory when it is created. Full story

How to open another X session inside X

X server
gdmflexiserver is used to start a second X server in Linux.By default gdmflexiserver open a new X session and it could be accessed in Alt+ctrl+F8.If we need a new X session inside our current X server then use option n with gdmflexiserver. #gdmflexiserver -n Full story

How to open second X session in linux

Desktop
This is a simple tip for Linux users.There may be cases like ,you need to open second X session in Linux.Solution is here.We have two methods to do that, Open a terminal using ALT+CTRL+F2 Full story

How to Enable Telnet service in Windows 7

windows 7
To enable telnet service in windows 7 follow this steps 1. Start 2. Control Panel 3. Programs And Features 4. Turn Windows features on or off 5. Check Telnet Client / Server 6. Click OK That's it Full story
Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site