How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

1. I am now in $HOME/sales/east directory. I want to have my

Customer Question

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? (1/2)
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
Ans: C
2A. Why I am getting this error when I assign like this ? (1/2)
ksh: FIRST-NAME=tom: not found.
2B. Under ksh or bash shell environments, what is the problem here? (1/2)
$ export PATH=/usr/bin /usr/local/bin /usr/ucb/bin
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
What kind of files will be matched by the following when you list by ls command:
A. ls [0-9][a-z][0-9][A-Z]
B. ls [A-Z0-9_][A-Za-z_0-9]
Ans: [0-9]Z[0-9]
What is the command to list files in a directory
A. Having only three alphabet
B. Starting with a digit and ending with a digit
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
How do you sort first 15 lines in a file called "datafile"? (You need to use a pipe)
How do you add a line to the end of an existing file "my file" with date stamp?
Submitted: 5 months ago.
Category: Programming
Expert:  Michael Hannigan replied 5 months ago.
Hello. My name is Michael. I will be helping you with your question today.If you could please attach the code that you have so far - either by using the paperclip icon here, or by uploading it to a site to which I can have access, like WikiSend or OneDrive, then provide me a link, that would be helpful so I could take a look at what you already have. Then I can take a look at it and let you know what I think.Mike