LINUX+ GUIDE TO LINUX CERTIFICATION
4th Edition
ISBN: 9780357005194
Author: ECKERT
Publisher: CENGAGE L
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 5, Problem 10RQ
What does the du /var command do?
- a. shows the users connected to the /var directory
- b. shows the size of all directories within the /var directory
- c. dumps the /var directory
- d. displays the amount of free space in the /var directory
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
write c program? plz single c file
write a program that will copy all files under the given folder to another one. In order to be able to complete this assignment, you have to research how to obtain the list of files in a directory in Linux. You must copy each file in a separate process. The folder name should be obtained from the arguments. You must perform all error checks?
shell scripting
Python question: I have a .py file in another folder in the same directory how do I import that file into another .py file?
For example, my directory folder is called "School_Work"
I have 2 folders:
Helper_Functions
Main_Driver
In my Helper_Functions folder I have the file called helper_functions.py and in my main driver I have a file called main.py. I want to import helper_functions.py into main.py. How do I do that?
Chapter 5 Solutions
LINUX+ GUIDE TO LINUX CERTIFICATION
Ch. 5 - Prob. 1RQCh. 5 - After a partition on a hard disk is formatted with...Ch. 5 - Prob. 3RQCh. 5 - Prob. 4RQCh. 5 - Prob. 5RQCh. 5 - A user mounts a device to a mount point directory...Ch. 5 - Which command is used to display the amount of...Ch. 5 - What must you do to successfully run the fsck...Ch. 5 - Character devices typically transfer data more...Ch. 5 - What does the du /var command do? a. shows the...
Ch. 5 - Prob. 11RQCh. 5 - Prob. 12RQCh. 5 - Which of the following statements are true?...Ch. 5 - Prob. 14RQCh. 5 - Which of the following statements regarding LVM...Ch. 5 - Prob. 16RQCh. 5 - You plug a USB flash memory drive into a system...Ch. 5 - Which command mounts all existing filesystems in...Ch. 5 - Prob. 19RQCh. 5 - Which command is used to format a partition on a...
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
- Task1: Create a directory say, "Linux user" and it contains three files (e.g.; A, B, C). Change the directory permission first for "user", “group", “others", “all" then change the permission of files residing in the same folder/directory.arrow_forwardPlease comment all code Using a python editor, write a python script that imports os and does the following: it changes the directory to net created previously, it displays the current directory, it checks if the path to one of the subdirectories of net exists, it checks if the name of one of the files created previously is a directory, it returns the sizes of both files, uses for a loop to print the content of net as a list of strings, uses a for loop to retrieve all files with the extension .xlsx, uses a for loop to join a few files to the netarrow_forwardYou have a directory that includes the filenames Bob, Charlie, Charlene, Dick, Derby, Edward, Eddie, and Evangeline. You type in the command “cat E.” The screen will display the contents ofarrow_forward
- Please comment all code Using a python editor, write a python script that imports os and does the following: - it changes the directory to net312 created previously.- it displays the current directory.- it checks if the path to one of the subdirectories of net312 exists.- it checks if the name of one of the files created previously is a directory.- it returns the sizes of both files.- uses for a loop to print the content of net312 as a list of strings.- uses a for loop to retrieve all files with the extension .xlsx.- uses a for loop to join a few files to the net312.arrow_forwardfind The find command takes a pattern as a command-line argument and recur- sively searches through directories to find a filename matching that pattern. It should print a relative path starting with "./" for every file/directory that matches. For example, running ./find 1s.c from within the hw2 directory should print ./1s.c. If run from the parent directory, the output would be . /hw2/1s.c. There may be multiple matches. If we run ./find .c from within the hw2 directory, we should see: ./find.c ./1s.c ./tree.c The output does not need to be sorted. If nothing matches, it shouldn't print anything. Pattern matching should be case sensitive.arrow_forwardWrite code that when executed in PowerShell, will satisfy the following requirements: • Display the contents of the c:\windows\system32 directory. • Only display the file / directory names. • Pipe the result into the format list cmdlet • Use only one line to solve the problem.arrow_forward
- 202. HOSTS file entries are limited to how many characters? a. 32 b. 255 c. 926 d. Unlimitedarrow_forwardIn Linux, Find every file that ends with “.py” or “.txt” or “.cpp” from your root directory.arrow_forwardUNIX ASSIGNMENT - IXQuestion 2: Write a command to list all the files inside a folder i.e. if there is a folder inside a folder then it should list all files inside the sub-folder which is inside the folder to be listed.arrow_forward
- Linux Homework Please show console output 1: Please create a script that prints “Hello, your name.” 2: Please create a directory call it yourname_bin, and add it to PATH. Then move the script “Hello, your name” to yourname_bin. Then run it from your root directory. 3: Add a new command called ‘a’ which will perform exact same as ‘ls -a’. 4: Create a function call it yournamesortFile, which will sort all filenames of current directory. 5: Please make your own page using shell script, print following as your page. <html> <head> <title> YourName System Information </title> </head> <body> <h1>YourNameSystem Information</h1> </body> </html> 6: Add one variable in the example, name the variable as greeting, which displays “Hello, my name is your name” in the body using variable greeting. 7: Add one…arrow_forwardIf the PYTHONPATH environment variable is set, which of the following directories are searched for modules? A) PYTHONPATH directory B) current directory C) home directory D) installation dependent default path A only A, B, and D B and D only A, B, C, and Darrow_forwardUNIX and LINUX please be thorough with each a,b,c a.Create a directory called dir1. b.Create 10 files in dir1 in whatever way you would like, and fill them with at least a few lines of text. Record how you did this here.c.Then, write a bsub command line that will submit a job for each file in dir1 to the express squeue that simply “cats” the file. The output file (stdout) for each job should be the <filename>.out That is, the first job should execute the command: cat file1 and the output should be in file: file1.outarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
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