Files and directories user permissions on Windows XP

DOS - Windows Batch Files, Tips No Comments »

You may have some troubles while using a network share on windows because of access restriction errors. Don’t panic, just use CACLS on windows XP.

Read the rest of this entry »

LINUX : How to reload or change your current shell ?

Bash - GNU Shell, Tips No Comments »

If you have change your rc file of your favorites bash (like ~/.bashrc in “bash“), you can reload it easly by using “exec“. Just type the following command line :

nicolas@grimm:~/$ exec bash

Exec replace the current process image with a new process image . So, now if you add aliases in your ~/.bash_aliases, just use “exec bash” and you could use your aliases in your current terminal. This way is also useful if you want to change your current shell without spawn another process. I mean, if you have a box where your login shell is a classical “sh“, you can also do an “exec bash“, that will replace your current shell by a friendly one.

Determine which Windows OS version is running

DOS - Windows Batch Files, Tips No Comments »

Many DOS commands in the 32-bit versions of Windows are similar but support different parameters, different commands or using different registry key name. Thus, if you wish to write a batch file that can run on different types of machines, it may prove beneficial to determine the version of Windows on which the batch file is running. This way the batch file can execute commands appropriate to the operating system.

Read the rest of this entry »

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in