Question

Please provide screenshots of the commands. 1. ls – list directory contents $ ls $ ls...

Please provide screenshots of the commands.

1. ls – list directory contents $ ls

$ ls -l

______________________________________________________________________

$ ls -alg

______________________________________________________________________

2. $ which echo

______________________________________________________________________

3. $ whereis echo

______________________________________________________________________

4. $ file <output from procedure 5>

______________________________________________________________________

alias – short cut command to a longer command

$l

$ alias l=”ls -alg"
$l

______________________________________________________________________

$ unalias l
$l

____________________________________________________________________

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) ls -l (It gives long listing format of files in a directory)

2) ls -alg (It gives long listing format of files in a directory without displaying its owner)

3) which echo (It gives locates the path of command)

4) whereis echo (It locates the source or binary file of the command)

5) file <filename> (It gives the type of file)

6) alias l=”ls -alg" (alias is used as the shortcut for a command)

7) unalias l (It wiill delete the alias command or the shortcut command)

HOPE YOU LIKE IT.PLEASE DO UPVOTE

Add a comment
Know the answer?
Add Answer to:
Please provide screenshots of the commands. 1. ls – list directory contents $ ls $ ls...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

  • Please write the Linux commands and run them. h. What is the command or commands that...

    Please write the Linux commands and run them. h. What is the command or commands that would list the contents of the /var/log directory in alphanumeric order? List the command and its output. i. What is the command or commands used to list the files in /var/log in order of their size? List the command and its output. j. What is the command or commands used to list the top 10 file who use the most disk space? What is...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • Question 2 0/1 point (graded) What happens when you remove a directory using the command rm...

    Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...

  • write a script which will list the contents of the /dev directory. Then have the script...

    write a script which will list the contents of the /dev directory. Then have the script create a file to redirect the output from the file to a new directory called Devsample in the /home directoy which will only display first 10 lines of the directory and last 5 lines of the directory. Show the output of the Devsample file. ( LINUX SCRIPT)

  • 1. Navigate to your home directory by typing cd. Now type ls and notice that there...

    1. Navigate to your home directory by typing cd. Now type ls and notice that there is a subdirectory called Downloads. Now navigate to the root of the file system by typing cd /. From here, which single command would you use to navigate directly to the Downloads folder that is located in your home directory? The output of the command would be as follows: 2. From the Downloads directory which single command would you use to navigate back up...

  • Please provide screenshots for the following so, I may see how the commands work thank you....

    Please provide screenshots for the following so, I may see how the commands work thank you. Create a new folder called "SharedEngrSales". Configure it so that users from the engr-sales group can share documents for both read and write among themselves Start the following long-running process: "tree / > tree.out". Quickly, before it finishes, pause the process and put it in the background. Type a command (perhaps "ls") and then bring the background process to the foreground Start another long-running...

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

  • Revision Question 3 on Linux. Please explain the shell script commands in the context of post...

    Revision Question 3 on Linux. Please explain the shell script commands in the context of post execution. You have just logged in and have a directory called "novel" in your home directory containing the following files: chapter1.docx chapter2.docx chapter3.docx draft.pdf save where "save" is itself a directory and contains the files Attributes.txt draft.pdf.1 draft.pdf.2 draft.pdf.3 indexA.txt indexB.txt list1.txt list2.txt a) Describe the results you would expect when executing the following shell commands: i) ls novel/save/*A* ii) ls novel/*r[23]* iii) rmdir...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT