pr with all options, lp commands in Linux In Hindi

pr aur lp commands Linux mein text files ko format karna aur print karna mein madadgar hoti hain. Niche main aapko pr aur lp commands ke saath commonly istemal hone wale options aur examples deta hoon:

pr with all options, lp commands in Linux In Hindi

pr Command (Print Files):

pr command ka basic syntax is tarah hota hai:

pr [options] [file]

Yahan kuch common options hain:

  • -d: Double spacing (har ek line ke beech ek aur line add karta hai).
  • -F: Kuch characters ko expand (spacing) karta hai, jaise tabs aur backspaces.
  • -l: Header aur footer lines ko skip karta hai.
  • -n: Number of columns ko specify karta hai.
  • -o: Output file ka naam specify karta hai.
  • -w: Line width ko specify karta hai.

Example:

pr -d -n 2 -o output.txt file.txt

Is example mein, file.txt ko double spaced format mein 2 columns ke sath output.txt mein save kiya jayega.

lp Command (Line Printer):

lp command ka basic syntax is tarah hota hai:

lp [options] [file]

Yahan kuch common options hain:

  • -d: Specific printer ka selection karta hai.
  • -n: Number of copies ko specify karta hai.
  • -o: Printer-specific options ko set karta hai.
  • -t: Print job ka title specify karta hai.
  • -H: Header ko specify karta hai.

Example:

lp -d printer_name -n 3 -o fit-to-page file.txt

Is example mein, printer_name par 3 copies of file.txt print hongi, aur fit-to-page option select kiya gaya hai.

Aap in commands ke options ka istemal apne specific requirements ke hisab se kar sakte hain aur files ko format karke print kar sakte hain.

Leave a Comment