Skip to content
  • Privacy Policy
  • Copyright Policy
  • Terms of Use

Edumotivation

  • Linux
    • Basic Commands
  • Linux Guides
    • Security
  • Top X
  • Request Your Tutorial
  • Donate

FAQ

[Resolved] How to exclude a directory in find . command?

July 1, 2021 by Edumotivation Team

Question: I’m trying to run a find command for all JavaScript files, but how do I exclude a specific directory? Here is the find code we’re using. for file in $(find . -name ‘*.js’) do java -jar config/yuicompressor-2.4.2.jar –type js $file -o $file done Answer: Use the -prune switch. For example, if you want to …

Read more

Categories FAQ Leave a comment

[Resolved] How can I profile C++ code running on Linux?

July 1, 2021 by Edumotivation Team

Question: I have a C++ application, running on Linux, which I’m in the process of optimizing. How can I pinpoint which areas of my code are running slowly? Answer: If your goal is to use a profiler, use one of the suggested ones. However, if you’re in a hurry and you can manually interrupt your …

Read more

Categories FAQ Leave a comment

[Resolved] How do I find all files containing specific text on Linux?

July 1, 2021 by Edumotivation Team

Question: I’m trying to find a way to scan my entire Linux system for all files containing a specific string of text. Just to clarify, I’m looking for text within the file, not in the file name. When I was looking up how to do this, I came across this solution twice: find / -type …

Read more

Categories FAQ Leave a comment
  • Facebook
  • RSS Feed
  • Mail
  • Telegram
  • Twitter

Recent Posts

  • Best 3 ways to upgrade ESXI host April 15, 2023
  • Difference between Linux P2V and Windows P2V March 19, 2023
  • Run a Linux Command Without Saving It in History January 11, 2023
  • How to find Linux Server iLO/iDRACĀ IP with Command-line July 3, 2022
  • /var is Full: How to clear /var in Linux June 26, 2022

Popular Posts

35 ls Command Examples in Linux (The Complete Guide)
rmdir command : How to delete a directory in Linux
9 wc Command Examples in Linux (Complete Guide)
Head Command Examples in Linux (The Complete Guide)
Linux Shutdown Command Examples (Complete Guide)
16 cat Command Examples in Linux (The Complete Guide)
uname Command in Linux with Examples
mkdir Command : How to Create a Directory in Linux
/var is Full: How to clear /var in Linux
Gzip Command in Linux with Examples
Bzip2 Command in Linux with Examples
Linux OS patching commands: checklist for Pre and Post server Reboot
How to find Linux Server iLO/iDRACĀ IP with Command-line
usermod Command in Linux with Examples
How to set grub2 password in RHEL/CentOS 7/8 (Step by Step Guide)
touch Command in Linux with Examples (The Complete Guide)
Implementing and Managing Disk Quotas in Linux (Step by Step Guide)
The 14 Best Linux Distros for Windows Users in 2022 [Updated List]
id Command in Linux with Examples (Print real and effective user and group IDs)
useradd Command : Create Users in Linux (The Complete Guide)

About Edumotivation

Edumotivation is an Ultimate free Linux training platform available on the internet in which we teach basic to advanced level topics.

Edumotivation was founded by Mangesh Dhulap

Our vision behind making this platform is that those who cannot afford paid courses, can learn this operating system freely through our website which will prove to be a milestone in his career growth. Know More>>

Categories

  • Basic Commands (44)
  • Best Linux Tools (7)
  • FAQ (3)
  • Gadgets (16)
  • Linux (195)
  • Linux Guides (142)
  • News (45)
  • Quiz yourself on Linux (1)
  • Security (6)
  • Technology (32)
  • Top X (83)
  • VMware vSphere (2)

Site Links

About Us
Contact Us
Make a Suggestion
Disclaimer
Sitemap
RSS Feed

  • Privacy Policy
  • Copyright Policy
  • Terms of Use
© 2023 Edumotivation. All Rights Reserved.