Sobes.tech
Junior — Middle

What command do you use to view the last 20 lines of a text file or log?

sobes.tech AI

Answer from AI

When working with Linux, I often use the following command-line tools and utilities:

  • ls, cd, pwd — for navigating the filesystem.
  • grep — for searching text within files.
  • awk and sed — for processing and transforming text data.
  • top and htop — for monitoring system processes and resources.
  • ps — for viewing running processes.
  • df and du — for assessing disk space usage.
  • tar, zip, unzip — for archiving and extracting files.
  • ssh — for remote server connections.
  • curl and wget — for downloading data from the internet.
  • systemctl — for managing system services.
  • chmod, chown — for managing file permissions.

These tools allow for efficient system management, task automation, and quick access to necessary information.