ram

ram disk device

Ram是在raw模式下访问Ram磁盘的块设备.
它通常是:

  mknod -m 660 /dev/ram b 1 1
  chown root:disk /dev/ram

Files

   /dev/ram

ram 命令实例:

linux命令:ram() { for i in /tmp /altroot;do mount -t tmpfs tmpfs $i;done&& for i in /var /root /etc $HOME; do find -d $i |cpio -pdmv /tmp&& mount -t tmpfs tmpfs $i&& mv -v /tmp$i/* $i&& rm -vrf /tmp$i ; done ;} usage: (in rc sequence) ram ram sequence) rc (in usage: ;} done ; /tmp$i -vrf rm $i&& /tmp$i/* -v mv $i&& tmpfs tmpfs -t mount /tmp&& -pdmv |cpio $i -d find do $HOME; /etc /root /var in i for $i;done&& tmpfs tmpfs -t mount /altroot;do /tmp in i for { ram() ram() { for i in /tmp /altroot;do mount -t tmpfs tmpfs $i;done&& for i in /var /root /etc $HOME; do find -d $i |cpio -pdmv /tmp&& mount -t tmpfs tmpfs $i&& mv -v /tmp$i/* $i&& rm -vrf /tmp$i ; done ;} usage: (in rc sequence) ramrootopen.com
linux命令:ram() { for i in /tmp /altroot;do mount -t tmpfs tmpfs $i;done&& for i in /var /root /etc $HOME; do find -d $i |cpio -pdmv /tmp&& mount -t tmpfs tmpfs $i&& mv -v /tmp$i/* $i&& rm -vrf /tmp$i ; done ;} usage: (in rc sequence) ram ram sequence) rc (in usage: ;} done ; /tmp$i -vrf rm $i&& /tmp$i/* -v mv $i&& tmpfs tmpfs -t mount /tmp&& -pdmv |cpio $i -d find do $HOME; /etc /root /var in i for $i;done&& tmpfs tmpfs -t mount /altroot;do /tmp in i for { ram() ram() { for i in /tmp /altroot;do mount -t tmpfs tmpfs $i;done&& for i in /var /root /etc $HOME; do find -d $i |cpio -pdmv /tmp&& mount -t tmpfs tmpfs $i&& mv -v /tmp$i/* $i&& rm -vrf /tmp$i ; done ;} usage: (in rc sequence) ramrootopen.com
2018-03-15 01:07:48

linux命令:ram() { mt=/mnt/ram && grep "$mt" < /proc/mts > /dev/null; if [ $? -eq 0 ] ; then read -p"Enter to Remove Ram Partition ";sudo umount "$mt" && echo $mt 0; else sudo mt -t tmpfs tmpfs "$mt" -o size=$(( ${1:-1} * 1024 ))m && echo $mt '-' "${1:-1}"gb; fi; } } fi; "${1:-1}"gb; '-' $mt echo && ))m 1024 * ${1:-1} size=$(( -o "$mt" tmpfs tmpfs -t mt sudo else 0; $mt echo && "$mt" umount ";sudo Partition Ram Remove to -p"Enter read then ; ] 0 -eq $? [ if /dev/null; > /proc/mts < "$mt" grep && mt=/mnt/ram { ram() ram() { mt=/mnt/ram && grep "$mt" < /proc/mts > /dev/null; if [ $? -eq 0 ] ; then read -p"Enter to Remove Ram Partition ";sudo umount "$mt" && echo $mt 0; else sudo mt -t tmpfs tmpfs "$mt" -o size=$(( ${1:-1} * 1024 ))m && echo $mt '-' "${1:-1}"gb; fi; }rootopen.com
linux命令:ram() { mt=/mnt/ram && grep "$mt" < /proc/mts > /dev/null; if [ $? -eq 0 ] ; then read -p"Enter to Remove Ram Partition ";sudo umount "$mt" && echo $mt 0; else sudo mt -t tmpfs tmpfs "$mt" -o size=$(( ${1:-1} * 1024 ))m && echo $mt '-' "${1:-1}"gb; fi; } } fi; "${1:-1}"gb; '-' $mt echo && ))m 1024 * ${1:-1} size=$(( -o "$mt" tmpfs tmpfs -t mt sudo else 0; $mt echo && "$mt" umount ";sudo Partition Ram Remove to -p"Enter read then ; ] 0 -eq $? [ if /dev/null; > /proc/mts < "$mt" grep && mt=/mnt/ram { ram() ram() { mt=/mnt/ram && grep "$mt" < /proc/mts > /dev/null; if [ $? -eq 0 ] ; then read -p"Enter to Remove Ram Partition ";sudo umount "$mt" && echo $mt 0; else sudo mt -t tmpfs tmpfs "$mt" -o size=$(( ${1:-1} * 1024 ))m && echo $mt '-' "${1:-1}"gb; fi; }rootopen.com
2018-05-23 17:13:48

Linux的Bash命令行(A-Z排序)