100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
unix commands $3.49   Add to cart

Class notes

unix commands

 5 views  0 purchase
  • Course
  • Institution
  • Book

contains unix commands

Preview 2 out of 6  pages

  • January 21, 2022
  • 6
  • 2021/2022
  • Class notes
  • Ram
  • All classes
avatar-seller
UNIX Commands
This page lists some of the more commonly used UNIX commands.

About UNIX
• Commands are typed at a prompt. Most often, the prompt is a percent sign (%) or dollar sign ($) but sometimes it is the
name of the machine followed by the percent or dollar sign.
• Commands are case sensitive and are usually lower case. This means that ls and LS are completely different commands.
• Spaces are very important. There is always a space between the command and the file or directory it acts upon.
• To execute a UNIX command, press Enter at the end of the command line. If the command is accepted, the prompt and
cursor will simply appear on the next line awaiting your next command. If the command is rejected, an error message
such as "Command not found" appears. Check your spelling, spaces, etc and try to reenter the command. To negate a
command before you have pressed Enter, press CTRL + C.
• To determine your default shell, type echo $SHELL.
• To change your default shell, run /usr/local/bin/chsh and follow the prompt. Do NOT use flags on the command. This is
a custom script and not the standard chsh you might find on Linux machines. After running the command, allow 24
hours for the default shell to take effect.
• Dot files begin with a dot (.) and are used primarily to control system functions. Unless you are an advanced UNIX user,
you should not add or delete anything from a dot file.

Common UNIX Commands
Command Action

cat <file> Print contents of file in the command window

cd <directory> Change directories

cp <file> <file2> Copy the contents of file into file2

history List history of all commands issued at system prompt

ls List the files and subdirectories in a directory

ls -F List the difference between files and directories--directories have a slash (/)

ls -l List files with status/detail information

ls -lt List file information in long format, sorted by time with newest files or newly changed files
appearing first

ls -a List all the files in a directory including dot files

fs lq Lists AFS quota, space used, percentage used

fs q Lists percentage of quota used

mkdir Make a directory
<directory>

mv <file> <file2> Move file to file 2

pwd Print the pathname of the current directory

, rm <file> Remove or delete files

rmdir <directory> Remove directory

Ctrl + C To negate a command that you have entered.


Command Examples

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller chiranjeevijami. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $3.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$3.49
  • (0)
  Add to cart