OPS102 W2C1: Linux and Windows Commands
40 Questions
6 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

When you're finished on ______, remember to log out.

matrix

You can also use ______ to exit.

ctrl-D

The command prompt will often contain useful information, but usually in a ______ format.

terse

Every user has a default “______ directory” (default folder).

<p>home</p> Signup and view all the answers

A ______ sign indicates a normal user in the Linux default command prompt.

<p>dollar</p> Signup and view all the answers

In Linux, the command __________ is the most commonly used command to display a list of files and subdirectories in the current directory.

<p>ls</p> Signup and view all the answers

You can use Windows CMD window to run the ______ command.

<p>ssh</p> Signup and view all the answers

To change to the parent directory, you need to use the command __________.

<p>cd</p> Signup and view all the answers

You can download and install a third party ______ client program, such as SSH Secure Shell Client or PuTTY.

<p>SSH</p> Signup and view all the answers

The command __________ in Windows is equivalent to the command ls in Linux.

<p>dir</p> Signup and view all the answers

Open a Windows CMD window, and then type the following command and press the enter key: ______ [email protected]

<p>ssh</p> Signup and view all the answers

In Linux, the command __________ -l is used to display a detailed list of files and subdirectories in the current directory.

<p>ls</p> Signup and view all the answers

You should see a prompt from ______ something like this: [senecausername@mtrx-node01pd ~]$

<p>bash</p> Signup and view all the answers

When you are working in __________, you would need to list the contents of a directory often.

<p>CLI</p> Signup and view all the answers

If you encounter an error message, and don’t get properly logged in to ______ – don’t worry!

<p>matrix</p> Signup and view all the answers

Most lab computers have ______ 10 installed on them.

<p>Windows</p> Signup and view all the answers

Linux is available on a server cluster called ______.

<p>matrix</p> Signup and view all the answers

The ______ server consists of several computers running CentOS, all working together to form a cluster.

<p>matrix</p> Signup and view all the answers

All registered students in this course have access to an account on ______.

<p>Matrix</p> Signup and view all the answers

The matrix cluster has been configured to allow users to only interact with the Linux OS using a ______ line interface (CLI).

<p>command</p> Signup and view all the answers

The command to display the calendar is ______ in Linux.

<p>cal</p> Signup and view all the answers

The command to print the name of the current user is ______ in Linux.

<p>whoami</p> Signup and view all the answers

In Linux, the topmost directory is the ______ (/).

<p>root</p> Signup and view all the answers

The command to list information about files and folders is ______ in Linux.

<p>ls</p> Signup and view all the answers

The command to clear the terminal screen and show the prompt in the first line is ______ in Linux.

<p>clear</p> Signup and view all the answers

Whenever a user opens a terminal, their ______ directory is their current working directory.

<p>home</p> Signup and view all the answers

We can navigate in the file system and change our ______ working directory any time using the cd command.

<p>current</p> Signup and view all the answers

In a CLI, we use the command cd to change our ______ working directory.

<p>current</p> Signup and view all the answers

The argument of the cd command can be any type of ______ (absolute, relative or relative to home).

<p>path</p> Signup and view all the answers

The cd command can be used to change directory to your ______ directory.

<p>home</p> Signup and view all the answers

Unix/Linux is ______ sensitive!

<p>case</p> Signup and view all the answers

Windows is not ______ sensitive for file names.

<p>case</p> Signup and view all the answers

Make your file and folder/directory names ______.

<p>meaningful</p> Signup and view all the answers

Avoid using ______ in file names – consider periods, hyphens, and underscores instead.

<p>spaces</p> Signup and view all the answers

A standard Linux distribution follows a ______ structure.

<p>directory</p> Signup and view all the answers

/bin contains ______ system binaries.

<p>Common</p> Signup and view all the answers

/usr is also called ______, where user related programs live.

<p>user</p> Signup and view all the answers

/usr/sbin contains ______ utilities for system administration.

<p>Common</p> Signup and view all the answers

/etc contains ______ configuration files.

<p>System</p> Signup and view all the answers

The ______ directory is the top of the file system hierarchy.

<p>Root</p> Signup and view all the answers

Study Notes

Matrix and SSH

  • When finishing work on Matrix, remember to log out using the exit or logout commands to disconnect from Matrix.
  • Ctrl-D can also be used to exit, as it means "end of file".

Command Prompt

  • Command line interfaces usually start each line with a prompt string before waiting for a command to be typed.
  • The prompt string often contains useful information in a terse format.

Linux Default Command Prompt

  • A common default bash shell prompt string includes:
  • Username of the current user
  • Local name of the computer
  • Shorthand for the user's home directory (~)
  • A dollar sign ($) indicating a normal user
  • A hash or number sign (#) indicating administrator permissions ("root" permissions)

Windows CMD Default Command Prompt

  • The standard Windows CMD prompt string indicates the current directory, usually the home directory of the user.

Accessing Matrix from Windows

  • Windows 10 or newer versions can use the Windows CMD window to run the ssh command.
  • Third-party SSH client programs, such as SSH Secure Shell Client or PuTTY, can also be used.

Connecting to Matrix from Windows CMD

  • Open a Windows CMD window and type the command "ssh [email protected]" (replace senecausername with actual username).
  • Type "yes" and press enter to confirm the "fingerprint" of Matrix.
  • Type the Seneca password at the password prompt and press enter.

Simple Commands to Start With

  • The command ls is used to display a list of files and subdirectories in the current directory or any other directory in Linux.
  • The equivalent command in Windows is dir.

Checking File Types in Linux with ls

  • Use ls -l (detailed listing) to indicate file types:
    • (hyphen) for a regular file
  • b for a device special file
  • d for a directory
  • l for a symbolic link (like a Windows shortcut)
  • p for a named pipe, for inter-process communication (IPC)
  • s for a Unix domain socket, also for IPC

Summary

  • Introduction to Matrix and SSH
  • Simple commands
  • Hierarchical file systems
  • Files and folders (directories)
  • Pathnames (absolute, relative, relative to home)
  • Current working directory and directory contents

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

ops102_2_1.pdf

Description

This quiz covers basic commands in Linux and Windows, including echo, cal, date, who, and whoami. Practice your skills in Matrix and Windows CMD environments.

More Like This

Use Quizgecko on...
Browser
Browser