Skip to content

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
  • Shell Script

    Find Out If Running Kernel Is 32 Or 64 Bit

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Find Out If Running Kernel Is 32 Or 64 Bit Type the following command at the terminal, run: $ uname -a Output: Linux ora100 2.6.5-7.252-smp #1 SMP Tue Feb 14 11:11:04 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux x86_64 GNU/Linux indicates that you’ve a 64bit Linux kernel running. If you use see…

    Read More Find Out If Running Kernel Is 32 Or 64 BitContinue

  • Uncategorised

    How Do I Find Out CPU is 32bit or 64bit?

    ByRajesh Kumar December 8, 2017May 28, 2020

    rajeshkumar created the topic: How Do I Find Out CPU is 32bit or 64bit? Simply type the following command and if you see lm in output, you have a 64 bit CPU based system: $ grep flags /proc/cpuinfo Output: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca…

    Read More How Do I Find Out CPU is 32bit or 64bit?Continue

  • Shell Script

    How to gunzip and untar all at once!

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: How to gunzip and untar all at once! How to gunzip and untar all at once! gunzip myfile.tar.gz tar -xvf myfile.tar INTO ONE tar -zxvf myfile.tar.gz Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More How to gunzip and untar all at once!Continue

  • Uncategorised

    RMP Quick Books Command

    ByRajesh Kumar December 8, 2017May 29, 2020

    rajeshkumar created the topic: RMP Quick Books Command Before trying to build anything from it, you should run rpmlint on the spec file: rpmlint program.spec Once you’ve create a spec file, say “program.spec”, you can create source and binary RPMs by simply running this: rpmbuild -ba program.spec If you just want to create a source…

    Read More RMP Quick Books CommandContinue

  • Shell Script

    Shell script program 2

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include error – checking to test whether two arguments were entered? tpatil replied the topic: Re: Shell script program 2 If I understand correctly your question, You want to…

    Read More Shell script program 2Continue

  • Shell Script

    $# and $* Questions

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: $# and $* questions If a script is run as foo -l -t bar [1-3], what are the values of $# and $*? does it make any difference if the options are combined?

    Read More $# and $* QuestionsContinue

  • Shell Script

    Exit status of command

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Exit status of command What are the exit status of a command? what is its normal value and where is the value stored?

    Read More Exit status of commandContinue

  • Shell Script

    tty terminals related script??

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: tty terminals related script?? Develop script logic that allows only romeo and henry to execute a program, and only from the terminals tty05 and tty06

    Read More tty terminals related script??Continue

  • Shell Script

    Df and Du issues with script

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: df and du issues with script A script named test containing the df and du commands displays nothing when executed. Why does that happen? state two ways of making the script behave properly.

    Read More Df and Du issues with scriptContinue

  • Shell Script

    Grep and Sed Questions with Shell script

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: grep and sed questions with shell script Search for a pattern with grep and sed and look for a file with find. Test the return value of each command when it displays no output. What conclusions would you draw?

    Read More Grep and Sed Questions with Shell scriptContinue

  • Shell Script

    Character validation in shell script?

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: character validation in shell script? Write shell code to accept a string from the terminal, and echo a suitable message if it does not have at least 10 characters using (i) case (ii) expr.

    Read More Character validation in shell script?Continue

  • Shell Script

    Find absolute path name of a file

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Find absolute path name of a file Use expr to extract the parent directory from the absolute path name of a file

    Read More Find absolute path name of a fileContinue

  • Shell Script

    Find Last Modification Time of File

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: find last modification time of file Write a script that accepts a filename as argument and displays the last modification time if the file exist and a suitable message if it does not?

    Read More Find Last Modification Time of FileContinue

  • Shell Script

    Make sure script is running using korn shell

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Make sure script is running using korn shell If you have developed a script using the Korn shell, how will you make sure the script will use that shell even if login shell is different? renjith replied the topic: Re: Make sure script is running using korn shell begin shell script…

    Read More Make sure script is running using korn shellContinue

  • Shell Script

    Identical file validation using shell script?

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: identical file validation using shell script? Device a script that accepts two directory names, bar1 and bar2, and deletes those files in bar2 which are identical to their namesakes in bar1. rajeshkumar replied the topic: Re: identical file validation using shell script? Solution: #!/bin/bash cd $1 for file in * ;…

    Read More Identical file validation using shell script?Continue

  • Shell Script

    Linux Tutorials: ps commands examples

    ByRajesh Kumar December 8, 2017April 24, 2022

    rajeshkumar created the topic: Useful Command for Process and Jobs in Unix/Linux List out all background Job running in machine i.e. list current jobs > jobs How to sent Job into Background ie background the suspended job > bg How to run background jobs on foreground 1. Find out the job number using “jobs” command…

    Read More Linux Tutorials: ps commands examplesContinue

  • Shell Script

    Unix command to Know some useful system Information

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Unix command to Know some useful system Information Unix command to Know some useful system Information top show system stats and top CPU using processes uptime show one line summary of system status who who is on the system and what they are doing more show text file on display terminal…

    Read More Unix command to Know some useful system InformationContinue

  • Shell Script

    Find c file Recursivly and Copy to Directory

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: find c file recursivly and copy to directory Write a shell script to find c file recursivly and copy to one common directory? rajeshkumar replied the topic: Re: find c file recursivly and copy to directory following program will serve your purpose… #!/bin/sh counter=0 if [ $# -eq 0 ] then…

    Read More Find c file Recursivly and Copy to DirectoryContinue

  • Shell Script

    Wget with proxy

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: wget with proxy Hi, Please find a following commmand which can used to wget with proxy…. export http_proxy=:3128 && wget –proxy-password= –proxy-user= -r -l 1 http://www.yahoo.com/ Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn scmuser replied the topic: Re: wget with proxy GNU Wget is a free software package for retrieving files…

    Read More Wget with proxyContinue

  • Shell Script

    List all the Grups and users in linux

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: List all the Grups and users in linux Hi, How can we list our all the users in Linux? How to list all the users created in linuz machine? rajeshkumar replied the topic: Re: List all the Grups and users in linux Following command will work for you…. less /etc/passwd less…

    Read More List all the Grups and users in linuxContinue

  • Shell Script

    Command Not Found With Visudo

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: command not found with visudo Hi, I want to edit visudo and include one user for running apache but when i type following command as a user”root” visudo i get following error… command not found.. P.S: I have tried to edit directly /etc/sudoers but it was not allowed. rajeshkumar replied the…

    Read More Command Not Found With VisudoContinue

  • Shell Script

    File Copying and Transfer between two machine

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: File Copying and Transfer between two machine File Copying and Transfer between two machine or within machine. Command 1: cp – Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. Command 2: ftp – ARPANET file transfer program (put / get Command 3: rsh – Runs a command on another computer….

    Read More File Copying and Transfer between two machineContinue

  • Shell Script

    Remove blank line using Grep and sed

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Remove blank line using Grep and sed Hi, How do you remove blank line using grep and sed in shell scripting? rajeshkumar replied the topic: Re: Remove blank line using Grep and sed grep -v “^$” filename > newfilename The ^$ within the quotes is a regular expression: ^=beginning of line,…

    Read More Remove blank line using Grep and sedContinue

  • Shell Script

    Find command return type

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Find command return type I am looking for following answer if anybody can help me out… How to Return a message when a file is not found using find command? OR Find command return type OR when the file is not found i want it to return some value OR tpatil…

    Read More Find command return typeContinue

  • Shell Script

    Nested for loop in Linux Shell Script

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Nested for loop in Linux Shell Script As you see the if statement can nested, similarly loop statement can be nested. You can nest the for loop. To understand the nesting of for loop see the following shell script. $ vi nestedfor.sh for (( i = 1; i

    Read More Nested for loop in Linux Shell ScriptContinue

  • Shell Script

    Find a Number of File in Directories Recursively

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: find a number of file in directories recursively I have several directories and files underneath…how to find only files from all directories… any command rajeshkumar replied the topic: Re: find a number of file in directories recursively Try following command find ./ -type f | wc -l For finding only files…

    Read More Find a Number of File in Directories RecursivelyContinue

  • Shell Script

    List all the users in linux

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: List all the users in linux List all the users in Linux cat /etc/passwd | cut -d”:” -f1 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied the topic: Re: List all the users in linux Some of other options are…. cat /etc/passwd | gawk ‘FS=”:” {print $1}’ ls /home cat…

    Read More List all the users in linuxContinue

  • Shell Script

    Character values in computer

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Character values in computer Hi, Every character has a value associated with it. What is it called? scmjobs replied the topic: Re: Character values in computer Each alphabet, number or symbol is known as a character, which represents the smallest piece of information that you can deal with. All these characters…

    Read More Character values in computerContinue

  • Shell Script

    Execute batch script using cygwin

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: execute batch script using cygwin How to execute batch script using cygwin? any help or any suggestion on this??

    Read More Execute batch script using cygwinContinue

  • Shell Script

    Shell script that will add two nos, which are supplied as command line

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmjobs created the topic: Shell script that will add two nos, which are supplied as command line How to write shell script that will add two nos, which are supplied as command line argument, and if this two nos are not given show error and its usage

    Read More Shell script that will add two nos, which are supplied as command lineContinue

Page navigation

Previous PagePrevious 1 … 351 352 353 354 355 … 388 Next PageNext

© 2026 - WordPress Theme by Kadence WP

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
Search