Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

opareting system

How to count lines in a document?

Use wc: This will output the number of lines in <filename>: Or, to omit the <filename> from the result use wc -l < <filename>: You can also pipe data to wc as well:

Categories linux Tags bash, command-line, linux, scripting

Snort Message – WARNING: No preprocessors configured for policy 0

I have installed and configured snort 2.9.7.2 and it is running without a problem. However, my question is: what does the following warning mean? “No preprocessors configured for policy 0” This message shows when I run the command:

Categories linux Tags linux, snort

xcopy returns error “Invalid number of parameters” when exclude parameter is set

XCOPY is an old command harking back to the days of DOS. It looks like the /EXCLUDE option was never updated to support long file names. Ugh šŸ™ If you remove the quotes, then the text after the space is interpreted as an additional parameter, and you get the “Invalid number of parameters” error. If … Read more

Categories windows Tags batch-file, cmd, windows, xcopy

Implementing shell in C and need help handling input/output redirection

You have way too many file descriptors open after your redirection. Let’s dissect the two paragraphs: I’m going to be charitable and ignore the fact that you are ignoring errors. However, you will need to error check your system calls. In the first paragraph, you open a file and capture the file descriptor (it might … Read more

Categories linux Tags c, linux, shell

What is the difference between /etc/rc.local and ~/.bashrc?

The difference is in when they are run and who they’re running as when run i.e. rc.local is run on a change of run level and it runs as root. bashrc is bash specific and run on a non login shell as a particular user. You can find a good explanation of rc.local here The script /etc/rc.local … Read more

Categories linux Tags linux, ubuntu

What are the differences between virtual memory and physical memory?

Softwares run on the OS on a very simple premise – they require memory. The device OS provides it in the form of RAM. The amount of memory required may vary – some softwares need huge memory, some require paltry memory. Most (if not all) users run multiple applications on the OS simultaneously, and given … Read more

Categories opareting system Tags memory-management, operating-system, ram, virtual-memory, virtualization

How to open an elevated cmd using command line for Windows?

I ran into the same problem and the only way I was able to open the CMD as administrator from CMD was doing the following: Open CMD Write powershell -Command “Start-Process cmd -Verb RunAs” and press Enter A pop-up window will appear asking to open a CMD as administrator

Categories windows Tags cmd, command, windows

How to run PowerShell in CMD

You need to separate the arguments from the file path: Another option that may ease the syntax using the File parameter and positional parameters:

Categories windows Tags batch-file, cmd, powershell, windows

tar: Cowardly refusing to create an empty archive

You defined what to exclude, but didn’t define what you actually want in the archive. Supply at least one path. If you want entire filesystem, thenĀ tar -c……. /

Categories linux Tags fedora, linux, tar

Python not working in the command line of git bash

Temporary solution Just enter this in your git shell on windows – > alias python=’winpty python.exe’, that is all and you are going to have alias to the python executable. This alias will be valid for the duration of the shell session. winpty is a Windows software package providing an interface similar to a Unix pty-master for … Read more

Categories windows Tags command-line, git, git-bash, python, windows
Older posts
Newer posts
← Previous Page1 … Page34 Page35 Page36 … Page56 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
Ā© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress