What is the command to list files in a directory

Assignment Help Basic Computer Science
Reference no: EM13787207

1. I am now in $HOME/sales/east directory. I want to have my login shell display me today's date whenever I login every time by telnet.
For this, what steps I have to do?
A. $ vi .profile
Type one line : echo "Today's date is `date`"
$ chmod +x .profile
$ . .profile

B. $ cd ../..
$ vi .profile
Type one line : echo "Today's date is `date`"
$ export .profile
$ .profile

C. $ cd $HOME
$ vi .profile
Type one line : echo "Today's date is `date`"
$ . .profile

D. $ vi ~/.profile
Type one line : echo "Today's date is "date"
$ . .profile

2A. Why I am getting this error when I assign like this ?
$ FIRST-NAME=smith
ksh: FIRST-NAME=smith: not found.
 
2B. Under ksh or bash shell environments, what is the problem here ?
$ export PATH=/usr/bin /usr/local/bin /usr/ucb/bin

3. Executing cp temp/temp1 temp1.txt it will result in...

A. Error since the same filename is used
B. Error since an extension is used for the second temp1
C. It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory
D. It will copy temp1 from directory temp to temp1.txt of current directory

4. What kind of files will be matched by the following when you list by ls command:
For Ex :
$ ls [a-z][0-9]

This matches any file with 2 characters, first being a lower case letter and the second being a number from 0 to 9

A. ls [0-9][a-z][0-9][A-Z] -- Note : there are no spaces anywhere.

B. ls [A-Z0-9_][A-Za-z_0-9] -- Note : there are no spaces anywhere.

C. ls [0-9]Z[0-9]

 

5. What is the command to list files in a directory:

A. Having only three alphabets:

B. Starting with a digit and ending with a digit

6. There are many C programs in my directory which have an extension of .c (ex : first.c, second.c etc).
How can I concatenate all C files into one file called "myC_files

7. How do you sort first 15 lines in a file called 'datafile" ? (You need to use a pipe)
 
8. How do you add a line to the end of an existing file "myfile" with date stamp.

Reference no: EM13787207

Questions Cloud

Develop a treatment plan for mike : Review "The Case of Mike". Develop a treatment plan for Mike. Discuss the importance of goal setting within the therapeutic relationship and explain how this is related to the process of implementation
Explain the huffman trucking virtual organization : Which of these roles would be installed in the Huffman Trucking Virtual Organization. State your reasoning for each server role that you would install.
Describe the types of negotiations : Describe the types negotiations
Documented evidence of psychiatric issues : John Hinckley, Jr. and the documented evidence of psychiatric issues leading to his controversial insanity defense in the shooting of President Ronald Reagan
What is the command to list files in a directory : It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory. What kind of files will be matched
Discuss the key elements of courtroom presentation : Create a mock court cause in which you discuss the key elements of courtroom presentation from the vantage point of the defendant and security personnel in a criminal trial or the plaintiff and respondent in a civil trial
Respond the given topic- incapacitation : Respond all the given topics: Incapacitation, Incapacitation, a Solution to Recidivism?, and Stopping Recidivism in Corrections
Objectives and goals of the bill : Prepare a 750- to 1,050-word proposal addressing the following: Objectives of the bill, Goals of the bill and Possible solutions for the bill
Determine effective techniques for improving communications : Determine effective techniques for improving communications during negotiation.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs, Flash RAM, and solid-state drives

  Kinds of system-building methods used by dorfman

Recognize the kinds of system-building methods used by Dorfman to create its wireless warehouse system. Explain the methodologies you would recommend

  Explain least two social media and networking technologies

Analyze how the university might integrate at least two social media and networking technologies to accomplish their goals. Your analysis must cover the advantages and disadvantages of social networking. The president of the university also needs ..

  Write a program that reads a list of numbers

write a program that reads a list of numbers, counts them, and calculates their arithmetic mean, geometric mean, and harmonic mean. These values should be printed with appropriate labels.

  Recognize ten different areas where software helps

In spreadsheet, recognize at least 10 different areas where software could help you, like collecting rent, performing tenant background checks, and scheduling building maintenance.

  Describe the structure of the world wide web

Describe the structure of the World Wide Web as interconnected hypertext documents and create and validate HTML documents - create presentations using Cascading Style Sheets and DHTML.

  Consumer demand helped managers develop the appropriate

In each of the following examples, describe how the information given about consumer demand helped managers develop the appropriate strategies to increase profitability and how this information was obtained: a.Auto industry executives have begun to f..

  What is the average length of the search for worst-fit

another placement algorithm for dynamic partitioning is referred to as worst-fit. In this case, the largest free block of memory is used for bringing in process. Discuss the pros and cons of this method compared to first-, next-, and best fit. Wha..

  The low and high integer in a range of integers

The low and high integer in a range of integers

  Explaining why facebook-s design is different

Why is Facebook's design different? Or has Google merely perfected something that most organizations have just now started to "tackle"?

  Create an html5document

Create an HTML5document that contains links to 5 daily deal sites (like Groupon or Living Social) The page should contain the heading "My Favorite Daily Deals Web Sites." Should be able to click on the links to test the page.

  Write a program to input the month and day of the birthday

Write a program to input the Month and Day of the birthday then use case statements to output the birthstone, and month. You can use if statements for the horoscope sign. You should use a function to test the Date and be sure it is valid.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd