Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть How to read the logs of any application whose file path/ exact name is unknown?

  • Decode Devops
  • 2024-11-20
  • 77
How to read the logs of any application whose file path/ exact name is unknown?
  • ok logo

Скачать How to read the logs of any application whose file path/ exact name is unknown? бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to read the logs of any application whose file path/ exact name is unknown? или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку How to read the logs of any application whose file path/ exact name is unknown? бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео How to read the logs of any application whose file path/ exact name is unknown?

The application can be anything, a program, a script, etc.

If you think the answer is "find" command with *log as the query, it is correct but not the most optimal one, as it will search in all of the file systems for matches and that will take a lot of time.

Checking in /var/log can be proposed as another solution but remember, we cannot be certain that the application logs are stored in "/var/log", it can be inside any other directory as well.

Application specific paths can be checked as well, but we might not know the path in every case where the app files are copied/ deployed.

Just using "ps -ef | grep java" can do the work in a few cases if the process details contain the path to log file, but it wouldn't work in all cases again.

We can use the "Isof -l /file/path" but remember the initial question, we don't know the log/ app path.

Thus the best way is to use the LSOF command together with the PS command.

Above will return all of the files that are opened by the process which will include the log for sure.

We can then use TAIL, HEAD, VIM, CAT, etc to navigate through the file.

Do share if you learnned something new or found it interesting

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]