Question

a) At a terminal prompt type touch sample1 sample2 and hit enter. This will create two...



a) At a terminal prompt type touch sample1 sample2 and hit enter. This will create two files in your current location.
b) Type ls -l sample1 sample2 sample3 and hit enter. What is shown?
c) Type ls -l sample1 sample2 > file and hit enter. What is shown?
d) Type cat file and hit enter. What are the contents of the file?
e) Type touch sample3.
f) Type ls -l sample1 sample2 sample3 2> file and hit enter. What is shown?
g) Type cat file and hit enter. What are the contents of the file now?
h) Type ls -l sample1 sample2 sample3 > file2> file2 and hit enter. What is shown?
i) Type cat file and hit enter. What are the contents of the file now?
j) Type cat file2 and hit enter. What are the contents of the file now?
k) Type date >> file and hit enter. What are the contents of the file now?

Homework Answers

Answer #1

B) This command will display information about sample1 sample2 (permission on file, memory, owner, group of owners, file size, and file directory) and file does not exist error message for sample3.

c) This command will copy information about sample1 sample2(permission on file, memory, owner, group of owners, file size, and file directory) into file.

d) This commannd will display content of file.

e) This command will create a new file with the name sample3.

f)This command will display information about sample1 sample2, and sample 3(permission on file, memory, owner, group of owners, file size, and file directory) and will redirect error.

g) This command will display content of file.

h)This command will copy information about sample1 sample2, and sample 3(permission on file, memory, owner, group of owners, file size, and file directory) into file2.

i)This command will display content of file.

j)This command will display content of file2.

k)This command will added date in content of file.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Open a new terminal window a) At the command prompt type the “top “command b) Screenshot...
Open a new terminal window a) At the command prompt type the “top “command b) Screenshot and post the number of running processes. c) How many sleeping processes do you have? d) How much total memory is shown? e) How much swap memory is shown? f) Describe what swap memory is and why it is important. g) While using the top command, Press the “h” key. What happens? Press “h” again to return. h) What is the PID of the...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() { char str[100]; /*Buffer to hold reversed string */ reverse("cat", str); /*Reverse the string "cat" */ printf("reverse(\"cat\")=%s\n", str); /*Display result */ reverse("noon", str); /*Reverse the string "noon" */ printf("reverse(\"noon\")=%s\n", str); /*Display result */ } reverse(char *before,...
Launch a new terminal. a) Using SUDO edit the /etc/default/grub file b) Modify the value GRUB_TIMEOUT...
Launch a new terminal. a) Using SUDO edit the /etc/default/grub file b) Modify the value GRUB_TIMEOUT to 30 and save the configuration. c) Use # to comment out the Hidden display entry. d) Type grub2-mkconfig –o /boot/grub2/grub.cfg and hit enter e) Reboot the system. How long did you have to wait? f) Press c to enter a command prompt. g) At the grub> prompt type help and hit enter. h) Type the command lspci and hit enter. What is being...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server Linux. 1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been loaded, log into tty1 using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what...
can you please do this lab? use lunix or C program its a continuation of a...
can you please do this lab? use lunix or C program its a continuation of a previous lab. the previous lab: Unix lab 4: compile and link multiple c or c++ files Please do the following tasks step by step: create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() {       char str[100];    /*Buffer...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will...
Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will use the tar utility to create, view, and extract a tar archive and use it options to name the tar file and view files as they are being archived and extracted. 1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory. 2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
Program Behavior Each time your program is run, it will prompt the user to enter the...
Program Behavior Each time your program is run, it will prompt the user to enter the name of an input file to analyze. It will then read and analyze the contents of the input file, then print the results. Here is a sample run of the program. User input is shown in red. Let's analyze some text! Enter file name: sample.txt Number of lines: 21 Number of words: 184 Number of long words: 49 Number of sentences: 14 Number of...
I cannot upload the needed text files to this question for your benefit of double checking...
I cannot upload the needed text files to this question for your benefit of double checking your solution, but I need help on this multi part question. Thanks! Write a Python program that will open the ‘steam.csv’ file. Your program should load the data as col- umns corresponding to the variable names located in the first row (You can hard code this – i.e open the file and use the names in the first row as variable names). You should...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads data from a file and performs regression analysis using polyfit and polyval. The function shall have the following features: The input arguments shall include the file name (string), a vector of integers for the degrees of polynomial fits to be determined, and an optional plot type specifier (‘m’ for multiple plots, ‘s’ for a single plot - default). The data files will be text...