Take Tuition from the Best Tutors
Search in
Answered on 12 Apr Learn Tuition
Sunali Mahajan
"ENTER To learn leave to ACHIEVE"
Answered 4 days ago Learn UNIX Certification
Deepika Agrawal
Microsoft Windows is an operating system that features a graphical user interface and compatibility with a wide range of hardware and software, primarily for personal computers. UNIX is a multitasking, multi-user operating system developed for workstations, servers, and other devices
read lessAnswered 5 days ago Learn UNIX Certification
Deepika Agrawal
Take Tuition from the Best Tutors
Answered 5 days ago Learn UNIX Certification
Deepika Agrawal
Answered 5 days ago Learn UNIX Certification
Deepika Agrawal
Echo is a Unix/Linux command tool used for displaying lines of text or string which are passed as arguments on the command line. This is one of the basic command in linux and most commonly used in shell scripts. In this tutorial, we will look at the different options of echo command.
read lessAnswered 5 days ago Learn UNIX Certification
Deepika Agrawal
Shell scripting is primarily used to automate repetitive system tasks, such as backing up files, monitoring system resources, and managing user accounts. By turning a series of commands into a script, system administrators can save time, increase accuracy, and simplify complex tasks.
read lessTake Tuition from the Best Tutors
Answered 5 days ago Learn UNIX Certification
Deepika Agrawal
Because of its open-source status, adaptability, control, and reliability, Linux is a preferred operating system among ethical hackers. For hacking and penetration testing, Linux provides a wide range of tools and applications. Its command-line interface makes difficult and automated tasks simpler.
read lessAnswered 5 days ago Learn UNIX Certification
Deepika Agrawal
Answered 6 days ago Learn UNIX Certification
Deepika Agrawal
I have a bash application that is producing some result, and I'd like to echo the result to either stdout
or to a user chosen file. Because I also echo other interactive messages going to the screen, requiring the user to explicitly use the >
redirection when he wants to echo the result to a file is not an option (*), as those messages would also appear in the file.
Right now I have a solution, but it's ugly.
if [ -z $outfile ]then echo "$outbuf" # Write output buffer to the screen (stdout)else echo "$outbuf" > $outfile # Write output buffer to filefi
I tried to have the variable $outfile
to be equal to stdout
, to &1
and perhaps something else but it would just write to file having that name and not actually to stdout. Is there a more elegant solution?
(*) I could cheat and use stderr
for that purpose, but I think it's also quite ugly, isn't it?
Take Tuition from the Best Tutors
Answered 6 days ago Learn UNIX Certification
Deepika Agrawal
The ps command writes the status of active processes and if the -m flag is given, displays the associated kernel threads to standard output. While the -m flag displays threads associated with processes using extra lines, you must use the -o flag with the THREAD field specifier to display extra thread-related columns.
read lessUrbanPro.com helps you to connect with the best Tuition in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for Tuition Classes are on UrbanPro
The best Tutors for Tuition Classes are on UrbanPro