Udało mi się zreprodukować ten problem.
Te dodatkowe pliki są tworzone po wydaniu polecenia source:
root@the-mountain:~# ls -al
drwxr-xr-x 1 root root 0 Oct 29 11:27 .
drwxr-xr-x 1 root root 0 Oct 23 23:58 ..
-rw-r--r-- 1 root root 104306 Oct 29 11:27 config.tar.gz
root@the-mountain:~# source /etc/profile
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
----------------------------------------------------------------
| |
| OpenWrt Barrier Breaker (r42943) |
| Build time: 2014-10-17 22:39 CEST |
| |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
----------------------------------------------------------------
| Machine: TP-LINK Archer C7 |
| Uptime: 0d, 00:05:04 |
| Load: 0.04 0.17 0.10 |
| Flash: total: 12.3MB, free: 6.2MB, used: 49% |
| Memory: total: 123.4MB, free: 102.4MB, used: 17% |
| WAN: 11.22.33.44, proto: static |
| LAN: 192.168.1.1 |
| WLAN: mode: ap, ssid: Valar_Morghulis, channel: 36 |
| WLAN: mode: ap, ssid: Ever_Vigilant, channel: 11 |
----------------------------------------------------------------
root@the-mountain:~# ls -al
drwxr-xr-x 1 root root 0 Oct 29 11:49 .
drwxr-xr-x 1 root root 0 Oct 23 23:58 ..
-rw-r--r-- 1 root root 104306 Oct 29 11:27 config.tar.gz
-rw------- 1 root root 7 Oct 29 11:49 ??P
Coś jest nie tak z tym domyślnym plikiem profile. Wykomentowałem jego zawartość, dałem source i nic się nie utworzyło. Zatem zacząłem hashować i wychodzi na to, że wpływ ma linijka:
export HISTFILE=/tmp/.history
Jak ją zahashuje i dam source, nic się nie tworzy, a tylko spróbuję ją odhashować i od razu po wydaniu polecenia source te śmieszne pliki się tworzą. Także wychodzi na to, że to jednak jest problem z tym ficzerem od historii.
Mógłby ktoś to potwierdzić? 