Search

How to X Forward

"X Forwarding" is the process of displaying graphics from one X Windows system on another. It can be compared to Microsoft's Remote Desktop or a VNC session.

In this tutorial, we will assume you want to setup X forwarding from the Computer Science "pyrite" server to your workstation.

Category: 

Search Commands

This section describes three commands for searching for files/directories. For additional information about these commands, log onto any COM S Linux/UNIX machine and type man command:

Files in a Directory Hierarchy

This section describes two commands to search for files in specific directories - one for Unix and Linux, and the other specifically for Linux.

Category: 

Permissions and Ownership

This document describes three commands to change the permissions and ownership (user or group) for files and directories. For additional information about any of these commands, log onto any COM S Linux/UNIX machine and type man command.

Permissions

Permissions define who can view and make changes to your files and directories. Each file and directory has nine permissions bits, which can be viewed using the -l option to the ls command.

Here is an example:

UNIX> ls -l

Category: 

NFS4 Permissions and Ownership

This document describes the NFS4_getfacls and NFS4_setfacls commands to change permission and ownership of files and directories on NFS4 file systems. All Linux/UNIX COM S computers are NFS4 file systems.


Viewing Permissions


To view permissions on a NFS4 file system, use the nfs4_getfacl filename command.


Here is an example:


UNIX>$ ls


file1   file2


Category: 

Miscellaneous Commands

Manual (man) pages

Command Effect
man command-name Displays the manual pages for the topic command-name.
man -k keyword Displays one-line summaries of the manual pages containing the string keyword.

Displaying the Current Date and Time

Command Effect
date
Category: 

Job (Process) Related Commands

A process is a program that is currently being executed on the machine. This document describes how to list running processes, send signals to the current process, terminate processes and manage foreground and background processes. For additional information about any of these commands, log onto any COM S Linux/UNIX machine and type man command.

Process Listing

The ps command lists processes that are running under your current login:

UNIX> ps

​PID    TTY    TIME    CMD

Category: 

Process and Job Control

Important Terms

  • PID: process identifier.
  • job-ID: job identifier.

Listing Process and Jobs

Command Effect
ps Displays a list of processes and corresponding PIDs.
ps gx Displays a list of processes, including "hidden" processes and corresponding PIDs.
jobs Displays a list of current jobs and corresponding job-IDs.

Stopping (Suspending) a Job/Process

Category: 

UNIX Fundamentals

Pathnames

Example Path Description
foo.c The file foo.c is in the current (working) directory.
pgms/foo.c There is a directory within the current directory named pgms, which contains a file named foo.c. (pgms/foo.c is called a relative path)
/home/jruser/pgms/foo.c The full path to the file foo.c based on the root of the file system.

Directory Abbreviations

Category: 

File System

Creating a File

Command Effect
cat > myfile Allows you to enter text with the keyboard to be stored in the file named myfile. After entering the desired text, press Crtl-D.
vi myfile Launches the vi text editor, given a file name of myfile.

Creating a Directory

Command Effect
Category: 

Basic UNIX Commands

This page describes the eight most frequently-used Linux/UNIX commands and examples of how to use them. For additional information about any of these commands, log into a COM S Linux machine and type: man command.

cd

The cd command changes the current (working) directory.

Category: 

Pages