┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ find /etc/ -name *.log 2>dev>null | wc -l 0 ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ find /etc/ -name *.log 2>dev>null | grep *.log | wc -l 0 ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ find -name *log 2>dev>null | wc -l 0 ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ find -name *log 2>dev>null | grep log | wc -l 0 ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ find -name *log | grep log | wc -l 6 ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ ^C ┌─[eu-academy-5]─[10.10.14.129]─[htb-ac-1791835@htb-ugwe3xqlbp]─[~] └──╼ [★]$ ssh htb-student@10.129.85.3 The authenticity of host ‘10.129.85.3 (10.129.85.3)’ can’t be established. ED25519 key fingerprint is SHA256:PHsjpBEAl6hSCzjVohppUybupbLXdBZy8FqtwlMpmjU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added ‘10.129.85.3’ (ED25519) to the list of known hosts. htb-student@10.129.85.3’s password: Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-123-generic x86_64)
- Documentation: https://help.ubuntu.com/
- Management: https://landscape.canonical.com/
- Support: https://ubuntu.com/advantage
System information as of Sun Apr 27 10:18:39 UTC 2025
System load: 0.3 Processes: 154 Usage of /: 51.0% of 6.76GB Users logged in: 0 Memory usage: 21% IP address for ens192: 10.129.85.3 Swap usage: 0%
- Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch
0 packages can be updated. 0 updates are security updates.
Last login: Wed Sep 23 22:09:41 2020 from 10.10.14.6 htb-student@nixfund:~$ find -name *log | grep log | wc -l 0 htb-student@nixfund:~$ ^C htb-student@nixfund:~$ find -name *log | grep log | wc -l 0 htb-student@nixfund:~$ find -name *log htb-student@nixfund:~$ find /etc/ -name *.log 2>dev>null | grep *.log | wc -l 0 htb-student@nixfund:~$ find /etc/ -name *.log 2>dev>null htb-student@nixfund:~$ find /etc/ -name *.log 2>dev>null | grep *.log htb-student@nixfund:~$ grep *.log ^Z [1]+ Stopped grep --color=auto *.log htb-student@nixfund:~$ find -name *log | wc -l 0 htb-student@nixfund:~$ find -name *.log | wc -l 0 htb-student@nixfund:~$ grep -name *.log | wc -l grep: invalid max count 0 htb-student@nixfund:~$ find | grep *.log | wc -l 0 htb-student@nixfund:~$ grep *.log | wc -l ^Z [2]+ Stopped grep --color=auto *.log | wc -l htb-student@nixfund:~$ find -name *.log | wc -l 0 htb-student@nixfund:~$ find -name *.log htb-student@nixfund:~$ find -name /sys/ .log | wc -l find: warning: Unix filenames usually don’t contain slashes (though pathnames do). That means that ‘-name ‘/sys/’’ will probably evaluate to false all the time on this system. You might find the ‘-wholename’ test more useful, or perhaps ‘-samefile’. Alternatively, if you are using GNU grep, you could use ‘find … -print0 | grep -FzZ ‘/sys/’’. find: paths must precede expression: `.log’ 0 htb-student@nixfund:~$ find /etc/ -name *.log 2>dev>null | wc -l 0 htb-student@nixfund:~$ find / -name *.log 2>dev>null | wc -l 0 ^Z [3]+ Stopped find / -name *.log 2> dev > null | wc -l htb-student@nixfund:~$ find -name *.log 2>dev>null | wc -l 0 htb-student@nixfund:~$ find /home/ -name *.log 2>dev>null | wc -l 0 htb-student@nixfund:~$ find /etc/ -name passwd >> stdout.txt 2>/dev/null htb-student@nixfund:~$ pwd /home/htb-student htb-student@nixfund:~$ find /etc/ -name *.conf 2>/dev/null | grep systemd /etc/systemd/system.conf /etc/systemd/timesyncd.conf /etc/systemd/journald.conf /etc/systemd/user.conf /etc/systemd/logind.conf /etc/systemd/resolved.conf htb-student@nixfund:~$ find /etc/ -name *.log 2>/dev/null | grep systemd htb-student@nixfund:~$ find /home/ -name *.log 2>/dev/null | grep .log htb-student@nixfund:~$ find /home/ -name *.log 2>/dev/null | wc -l 0 htb-student@nixfund:~$ find / -name *.log 2>/dev/null | wc -l 32
When you pipe your find output to grep, do you see anything common in your grep searches so that you don’t have to put in each individual item?
Also, if you’re finding only files named .log, you don’t need to grep for .log too.
You need to watch some Linux 101 videos or maybe even programming 101 to get into the mindset
holy god, learn markdown. use three backticks (the key beneath ESC: `) to present pre-formatted text like a paste from your terminal. we cannot fucking read this mess.
i wasted 1hr on this question
You never asked a question, you posted the content of a terminal.
Is this a question?
yea from hack the box
How many files exist on the system that have the “.log” file extension?
How many total packages are installed on the target system?
i couldn’t answer the seccond one so had to look on internet