pi@raspberrypi:~ $ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.8 33712 8044 ? Ss may14 0:16 /sbin/init
root 2 0.0 0.0 0 0 ? S may14 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? I< may14 0:00 [rcu_gp]
root 4 0.0 0.0 0 0 ? I< may14 0:00 [rcu_par_gp]
root 8 0.0 0.0 0 0 ? I< may14 0:00 [mm_percpu_wq]
root 9 0.0 0.0 0 0 ? S may14 0:03 [ksoftirqd/0]
root 10 0.0 0.0 0 0 ? I may14 0:23 [rcu_sched]
root 11 0.0 0.0 0 0 ? I may14 0:00 [rcu_bh]
root 12 0.0 0.0 0 0 ? S may14 0:00 [migration/0]
root 13 0.0 0.0 0 0 ? S may14 0:00 [cpuhp/0]
root 14 0.0 0.0 0 0 ? S may14 0:00 [cpuhp/1]
root 15 0.0 0.0 0 0 ? S may14 0:00 [migration/1]
root 16 0.0 0.0 0 0 ? S may14 0:00 [ksoftirqd/1]
root 19 0.0 0.0 0 0 ? S may14 0:00 [cpuhp/2]
root 20 0.0 0.0 0 0 ? S may14 0:00 [migration/2]
root 21 0.0 0.0 0 0 ? S may14 0:02 [ksoftirqd/2]
root 24 0.0 0.0 0 0 ? S may14 0:00 [cpuhp/3]
root 25 0.0 0.0 0 0 ? S may14 0:00 [migration/3]
root 26 0.0 0.0 0 0 ? S may14 0:00 [ksoftirqd/3]
root 29 0.0 0.0 0 0 ? S may14 0:00 [kdevtmpfs]
root 30 0.0 0.0 0 0 ? I< may14 0:00 [netns]
root 35 0.0 0.0 0 0 ? S may14 0:00 [khungtaskd]
root 36 0.0 0.0 0 0 ? S may14 0:00 [oom_reaper]
root 37 0.0 0.0 0 0 ? I< may14 0:00 [writeback]
root 38 0.0 0.0 0 0 ? S may14 0:00 [kcompactd0]
root 39 0.0 0.0 0 0 ? I< may14 0:00 [crypto]
root 40 0.0 0.0 0 0 ? I< may14 0:00 [kblockd]
root 41 0.0 0.0 0 0 ? S may14 0:00 [watchdogd]
root 42 0.0 0.0 0 0 ? I< may14 0:00 [rpciod]
root 43 0.0 0.0 0 0 ? I< may14 0:00 [kworker/u9:0]
root 44 0.0 0.0 0 0 ? I< may14 0:00 [xprtiod]
root 47 0.0 0.0 0 0 ? S may14 0:00 [kswapd0]
root 48 0.0 0.0 0 0 ? I< may14 0:00 [nfsiod]
root 59 0.0 0.0 0 0 ? I< may14 0:00 [kthrotld]
root 60 0.0 0.0 0 0 ? I< may14 0:00 [iscsi_eh]
root 61 0.0 0.0 0 0 ? I< may14 0:00 [dwc_otg]
root 62 0.0 0.0 0 0 ? I< may14 0:00 [DWC Notificatio]
root 63 0.0 0.0 0 0 ? S< may14 0:00 [vchiq-slot/0]
root 64 0.0 0.0 0 0 ? S< may14 0:00 [vchiq-recy/0]
root 65 0.0 0.0 0 0 ? S< may14 0:00 [vchiq-sync/0]
root 66 0.0 0.0 0 0 ? S may14 0:00 [vchiq-keep/0]
root 68 0.0 0.0 0 0 ? I< may14 0:00 [mmc_complete]
root 72 0.0 0.0 0 0 ? I< may14 0:01 [kworker/1:1H-kblockd]
root 73 0.0 0.0 0 0 ? S may14 0:03 [jbd2/mmcblk0p2-]
root 74 0.0 0.0 0 0 ? I< may14 0:00 [ext4-rsv-conver]
root 76 0.0 0.0 0 0 ? I< may14 0:00 [ipv6_addrconf]
root 96 0.0 0.0 0 0 ? I< may14 0:07 [kworker/0:2H-kblockd]
root 114 0.1 1.0 41896 10696 ? Ss may14 1:33 /lib/systemd/systemd-journald
root 134 0.0 0.3 18044 3988 ? Ss may14 0:01 /lib/systemd/systemd-udevd
systemd+ 211 0.0 0.5 22412 5636 ? Ssl may14 0:00 /lib/systemd/systemd-timesyncd
root 253 0.0 0.2 7972 2356 ? Ss may14 0:00 /usr/sbin/cron -f
root 255 0.0 0.0 3692 740 ? SNs may14 0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
root 256 0.0 0.5 13040 5684 ? Ss may14 0:00 /lib/systemd/systemd-logind
nobody 257 0.0 0.2 4320 2076 ? Ss may14 0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root 259 0.0 0.2 25512 2764 ? Ssl may14 0:21 /usr/sbin/rsyslogd -n -iNONE
avahi 263 0.0 0.2 5772 2588 ? Ss may14 0:00 avahi-daemon: running [raspberrypi.local]
message+ 267 0.0 0.2 6560 2960 ? Ss may14 0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 270 0.0 0.4 10740 4012 ? Ss may14 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root 272 0.0 0.0 27656 80 ? SLsl may14 1:12 /usr/sbin/rngd -r /dev/hwrng
avahi 281 0.0 0.0 5772 252 ? S may14 0:00 avahi-daemon: chroot helper
root 295 0.0 0.0 0 0 ? I< may14 0:00 [cfg80211]
root 368 0.0 0.1 2832 1652 ? Ss may14 0:00 /sbin/dhcpcd -q -w
root 379 0.0 0.1 4308 1372 tty1 Ss+ may14 0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root 381 0.0 0.1 6612 1804 ? Ss+ may14 0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyAMA0 vt220
root 387 0.0 0.5 10724 5576 ? Ss may14 0:22 /usr/sbin/sshd -D
root 388 0.0 1.6 191588 16796 ? Ss may14 0:06 /usr/sbin/apache2 -k start
www-data 4417 0.0 0.9 191924 9488 ? S 08:59 0:00 /usr/sbin/apache2 -k start
root 6602 0.0 0.0 0 0 ? I< 10:20 0:00 [kworker/2:0H-kblockd]
root 6806 0.0 0.0 0 0 ? I 10:26 0:00 [kworker/3:1-cgroup_destroy]
root 9283 0.0 0.0 0 0 ? I 11:18 0:00 [kworker/1:0-events]
root 12477 0.0 0.0 0 0 ? I 12:15 0:00 [kworker/3:2-events]
root 15283 0.0 0.0 0 0 ? I 13:38 0:01 [kworker/0:2-events_power_efficient]
root 15290 0.0 0.0 0 0 ? I 13:38 0:00 [kworker/1:2-events]
root 15710 0.0 0.0 0 0 ? I 14:02 0:00 [kworker/u8:2-events_unbound]
root 15897 0.0 0.0 0 0 ? I< 14:10 0:00 [kworker/2:2H]
root 15899 0.0 0.0 0 0 ? I< 14:10 0:00 [kworker/3:1H]
root 15985 0.0 0.0 0 0 ? I 14:15 0:00 [kworker/2:0-events_freezable]
root 16045 0.0 0.6 12236 6272 ? Ss 14:18 0:00 sshd: pi [priv]
pi 16053 0.0 0.6 14596 6812 ? Ss 14:18 0:00 /lib/systemd/systemd --user
pi 16056 0.0 0.3 35252 3368 ? S 14:18 0:00 (sd-pam)
root 16064 0.0 0.0 0 0 ? I 14:18 0:00 [kworker/0:1-events_power_efficient]
pi 16071 0.0 0.3 12236 3640 ? S 14:18 0:00 sshd: pi@pts/0
pi 16075 0.1 0.3 8608 3712 pts/0 Ss 14:18 0:01 -bash
root 16110 0.0 0.0 0 0 ? I< 14:20 0:00 [kworker/1:2H]
root 16112 0.0 0.0 0 0 ? I 14:20 0:00 [kworker/2:1-mm_percpu_wq]
root 16120 0.0 0.0 0 0 ? I< 14:20 0:00 [kworker/0:1H]
root 16175 0.0 0.0 0 0 ? I 14:24 0:00 [kworker/u8:0-events_unbound]
root 16303 0.0 0.0 0 0 ? I< 14:25 0:00 [kworker/3:0H]
root 16307 0.0 0.0 0 0 ? I< 14:25 0:00 [kworker/0:0H]
root 16311 0.0 0.0 0 0 ? I 14:25 0:00 [kworker/2:2-events]
root 16318 0.0 0.0 0 0 ? I 14:25 0:00 [kworker/0:0]
root 16356 0.0 0.0 0 0 ? I< 14:28 0:00 [kworker/1:0H]
root 16422 0.0 0.0 0 0 ? I 14:29 0:00 [kworker/3:0]
root 16434 0.0 0.0 0 0 ? I 14:29 0:00 [kworker/u8:1]
pi 16435 0.0 0.2 9784 2560 pts/0 R+ 14:30 0:00 ps aux
www-data 19115 0.0 0.9 191932 9496 ? S 00:00 0:00 /usr/sbin/apache2 -k start
www-data 19116 0.0 0.9 192024 9540 ? S 00:00 0:00 /usr/sbin/apache2 -k start
www-data 19117 0.0 1.1 192040 11180 ? S 00:00 0:00 /usr/sbin/apache2 -k start
www-data 19119 0.0 0.9 192032 9544 ? S 00:00 0:00 /usr/sbin/apache2 -k start
www-data 19120 0.0 0.9 192032 9544 ? S 00:00 0:00 /usr/sbin/apache2 -k start
root 22383 3.3 3.8 91696 38320 ? Sl 01:03 27:07 python /usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf
root 22477 0.0 0.0 0 0 ? I< 01:05 0:00 [kworker/3:2H-kblockd]
www-data 23907 0.0 0.9 192032 9536 ? S 01:48 0:00 /usr/sbin/apache2 -k start
www-data 23908 0.0 0.9 191652 9212 ? S 01:48 0:00 /usr/sbin/apache2 -k start
www-data 25693 0.0 0.9 192032 9544 ? S 03:13 0:00 /usr/sbin/apache2 -k start
www-data 25694 0.0 0.9 192032 9548 ? S 03:13 0:00 /usr/sbin/apache2 -k start
Desde la mas absoluta ignorancia pregunto:
cuando pongo las lineas que genera la consola lo hago seleccionando el texto y con el boton derecho, click.
Esto copia el texto pero a su vez, hace como intro, y todo lo seleccionado, linea a linea lo envia a la terminal como comando para ejecutar.
La terminal devuelve error pero es posible que alguna linea haya provocado este lio
?.
No se si me haya explicado bien.......
Por prevenir males mayores, he utilizado
ps aux > lista.txt para generar el listado en un archivo.
Segundo:
Borrar lineas.
total 92
drwxr-xr-x 5 pi pi 4096 may 15 14:35 .
drwxr-xr-x 3 root root 4096 jul 10 2019 ..
-rw------- 1 pi pi 22060 may 14 20:44 .bash_history
-rw-r--r-- 1 pi pi 220 jul 10 2019 .bash_logout
-rw-r--r-- 1 pi pi 3523 jul 10 2019 .bashrc
drwx------ 3 pi pi 4096 may 1 15:43 .config
-rwxr-xr-x 1 pi pi 263 mar 4 17:13 copiaweewx.shdrwx------ 3 pi pi 4096 oct 15 2019 .gnupg
-rw-r--r-- 1 pi pi 0 may 15 14:35 lista2.txt
-rw-r--r-- 1 pi pi 9108 may 15 14:32 lista.txt
drwxr-xr-x 3 pi pi 4096 ene 6 00:16 .local
-rw-r--r-- 1 pi pi 339 mar 9 23:02 meteoclimatic.php
-rw-r--r-- 1 pi pi 807 jul 10 2019 .profile
-rw-r--r-- 1 pi pi 66 ene 6 00:16 .selected_editor
-rwxr-xr-x 1 pi pi 281 may 14 20:43 temp.sh-rwxr-xr-x 1 pi pi 303 may 14 20:44 temp.sh.save
Resultado: se han borrado y ya solo salen los archivos de siempre.
He listado los ocultos por si alguno no es necesario y lo puedo borrar tambien.
Los de color verde son los únicos que tenia hasta ahora.