LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN: 9781337569798
Author: ECKERT
Publisher: CENGAGE L
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Which command could you use to see a list of all environment and user-defined shellvariables as well as their current values?a. ls /varb. envc. setd. echo
Which construct can be used in a shell script to read Standard Input and place it in a variable?a. readb. sumc. verifyd. test
Using your understanding of Shell Variables, answer the following with Linux commands:a. Use echo to display Hellp followed by your username.b. Create a variable Sosket with a value of 20.c. Destroy your Sosket variable.d. Write a Linux command to display the last 2 commands typede. Write a single line command to List (with Is) all files starting with file and ending in a number.f. What command character can be used to get regular expressions in Linux that matches the end of a string?g. Differentiate between SHISTFILE and SHISTSIZE
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- You can configure your shell by editing the file~/.bashrc for instance to change the value of$ PS1 and $PAth permenatrly true or falsearrow_forwardWhich INT 21h functions shown in this chapter probably will not work under Windows NT,2000, or XP with a restricted user profile?arrow_forwardBelow is a sequence of shell commands that we typed into a bash terminal window on a Linux machine and some of the output that was produced. Your job is to write the output produced by the commands in the sequence. The commands are executed consecutively and changes made by one command may affect the output produced by later commands. First Create a Directory and Rename as Name_AridNo like (Ali_18-Arid-102) and then execute the following commands and show output. Shell > pwd /home/me/test > ls -F hw1 hw1.bak tmp/ > bash > touch it > cd tmp > ls –F justme.txt > echo “Dear Ali” > diary > cat ‘Name_AridNo’ /etc/hosts > pwdarrow_forward
- What does the following command tell the shell to do? $ wc -l file[237ACks]arrow_forwardUse following variables to write your CV in Linux bash script. Variable Script Output $0 $n $# $* $@ $?arrow_forwardQ1 What does the following command do? Please explain and run the command on your own system & provide an example of the results.┌──(kali㉿kali)-[~]└─$ uptime What does the option -s show in the following command? Please explain and run the command on your own system & provide an example of the results.┌──(kali㉿kali)-[~]└─$ uptime -s Q2What do the -b and -n 2 options do to the top command?Why were those options used in the Lab Mod 5 Lab A? ┌──(kali㉿kali)-[~]└─$ top -b -n 2arrow_forward
- WITH LINUX DO THE FOLLOWING: Please write a shell script called "greeting" that displays a greeting message "Hello, cfs264sp18?? (your login ID)!" with the current date in the format "yyyy-mm-dd" and the list of the users who are currently on the system. Please provide a title of "The users who are currently on the system" before listing those users. Please show me how to do this from start to finish, like which file and directory I need to use, or what commands to even create a greeting. Thank you.arrow_forwardWhich cat command is used to create empty files? i. cp ii. cat iii. touch iv. createarrow_forwardExplain the behavior of the following shell script: $ cat quote_demo twoliner="This is line 1. This is line 2." echo "$twoliner" echo $twoliner How many arguments does each echo command see in this script? Explain. Redefine the IFS shell variable so the output of the second echo is the same as the first. Add the exit status ofarrow_forward
- Which of the following commands would display all files that start with the characters song and end in a number 100-599? A. ls song??? B. ls song[100-599] C. ls song[0-9][0-9][0-9] D. ls song[1-5][0-9][0-9]arrow_forwardWhich of the following commands can be used to list the files contained within aninstalled RPM package?a. rpm –qa packagenameb. rpm –qi packagenamec. rpm –ql packagenamed. rpm –q packagenamearrow_forwardWrite a Linux shell script that finds all files on /home that contain a given specific text string in the body of the file,Ensure that the text string your script will search for is supplied at the script’s command line.• Note that your script should handle any error conditions by printing out a descriptive errormessage to the shell and then exiting.• Submit your script with the filename <YourFullName>_restrictfiles.sh. Please submit a screen shot of your work in nanoarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License