Форматирование ответа в виде строки значения ключа

Лично я бы выбрал tmpfs, так как он хранит файлы в памяти, что в целом намного быстрее.

Я нашел это:https://askubuntu.com/questions/1637/good-filesystem-for-tmp

tmpfs: is a filesystem which stores its files in RAM. This doesn't mean that the filesystem will eat all your RAM. Instead it takes only that amount it really needs. Usually only some MB are needed. If you'll use it, add a line like: none /tmp tmpfs size=64M,mode=1777 0 0 to your /etc/fstab. You can change the size to a value you like. If you think at some point that it is too less, you can use mount to increase the size: mount -t tmpfs tmpfs /tmp -o size=128M,mode=1777,remount. The size will be increased in place without deleting existing files.

ext2/3: You said in your question that you don't need any fancy features. However I would advice for using a journal. Because if you use ext2 and you have a quite large /tmp it would take some time for checking it. ext3 boots any many cases faster. Therefore I would suggest the use of journalling.

ext4, reiserfs etc.: Some software uses /tmp for storing large amounts of small files. So in some cases there are no more free blocks and the filesystem is full. ext4 and also reiserfs store files in a different way. So it could be a good choice to use those for your /tmp.

If your computer runs for a long time, it is a good idea to delete unused files in /tmp. tmpreaper is one solution which does that for you.

However my first choice would be using tmpfs.

РЕДАКТИРОВАТЬ :Так как вам не нужна ни директория Lost+Found, ни tmpfs, btrfs и reiserfs/reiser4 не имеют Lost+Found, возможно, вы захотите использовать одну из них? Я бы рекомендовал btrfs вместо reiserfs/reiser4.

Сравнение файловых систем :http://www.phoronix.com/scan.php?page=article&item=linux-40-hdd&num=1

0
02.08.2019, 14:54
1 ответ

Попробуйте это,

echo -e "[CurrentDirectory=[`pwd`]] [AllDirectoriesInCurrentDirectory=[`ls -l | grep -v '^total'`]]"

Выход:

 [CurrentDirectory=[/home/test]] [AllDirectoriesInCurrentDirectory=[-rw-r--r-- 1 root root    0 Jul 17 16:50 2501254200*.nc
-rw-r--r-- 1 root root  118 Jul 17 12:12 ghf
-rw-r--r-- 1 root root  179 Aug  1 16:35 jjj
-rw-r--r-- 1 root root  716 Aug  2 17:15 kk
-rw-r--r-- 1 root root 2527 Jul 17 15:10 test
-rw-r--r-- 1 root root  216 Jul 17 16:28 ttt]]
0
28.01.2020, 03:24

Теги

Похожие вопросы