Archivo de la categoría: Nix

Btrfs butter file system linux

Btrfs is a new copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone. https://btrfs.wiki.kernel.org/index.php/Main_Page https://btrfs.wiki.kernel.org/index.php/Getting_started

Running IPMI on Linux

quick commands ipmitool -H 192.168.1.1 -U root -P 123456 chassis power status ipmitool -H 192.168.1.1 -U root -P 123456 chassis power on ipmitool -H 192.168.1.1 -U root -P 123456 chassis power soft (note: -a prompts password)   What is IPMI? IPMI is standard which allows remote server management, primarily developed by Intel. IPMI cards, known… Leer más »

remove ^M

in vi do the following: :g/^M/s/// (the ctrl-m has to be entered with the key strokes «ctrl-v followed by ctrl-m». That’s teh only way it works! Or use sed to do it: sed ‘s(ctrl v ctrl m)g//g’ old.file > new.file tr -d ‘\r’ new.file

Categoría: Nix

Create a 1 GiB file containing only zeros

Create a 1 GiB file containing only zeros (bs=blocksize, count=number of blocks): time dd if=/dev/zero of=trash bs=1M count=1024 Benchmark —————————————– Laptop HP Wrk 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 14.2728 s, 75.2 MB/s —————————————————— Server T110 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 9.777131 s, 110… Leer más »

Categoría: Nix

-bash: fork: Not enough space

-bash: fork: Not enough space First your RAM, then the swap got full. Check the space available using swapinfo and check if there is any user application causing huge memory leaks. Increase swap space. PID list FULL

install tomcat centos 5

yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps xml-commons-apis # service tomcat5 restart # chkconfig tomcat5 on edit #sudo vim /etc/tomcat5/tomcat-users.xml

mandel

#include /* CC mandel.c/A link mandel.obj,c:suport.obj,c:clib.obj */ main() { float b,e,r,n,d; int h,c; for(e=1.1; e>-1.2; e-=.1) { for(b=-2; b

Categoría: Nix

Linux kernel in C why not C++

http://www.tux.org/lkml/#ss15   Hello Rkalyankumar, The reasons specifically for Linux are explained in great detail as part of the Linux Kernel Mailing List (LKML) Frequently Asked Questions (FAQ) at: http://www.tux.org/lkml/

Categoría: Nix