SlideShare a Scribd company logo
Working with NFS files
Files saved on the UITS central Unix computers Chrome, Cobalt, Zinc, Steel, EZinfo, and
STARRS/SP are stored on the Network File Server (NFS). That means that your files are really
on one disk, in directories named for the central Unix hosts on which you have accounts.
No matter which of these computers you are logged into, you can get to your files on any of the
others. Here are the commands to use to get to any system directory from any other system:
cd /N/u/username/Chrome/
cd /N/u/username/Cobalt/
cd /N/u/username/Zinc/
cd /N/u/username/Steel/
cd /N/u/username/Ezinfo/
cd /n/u/username/SP/
Be sure you use the capitalization just as you see above, and substitute your own username for
username.
For example, if Jessica Rabbit is logged into her account on Steel, and wants to get a file on her
EZinfo account, she would enter:
cd /N/u/jrabbit/Ezinfo/
Now when she lists her files, she’ll see her EZinfo files, even though she’s actually logged into
Steel.
You can use the ordinary Unix commands to move files, copy files, or make symbolic links
between files. For example, if John Doe wanted to move “file1” from his Steel directory to his
EZinfo directory, he would enter:
mv -i /N/u/jdoe/Steel/file1 /N/u/jdoe/Ezinfo/
This shared file system means that you can access, for example, your Chrome files even when
you are logged into Cobalt, and vice versa. However, if you are logged into Chrome, you can
only use the software installed on Chrome —only users’ directories are linked together, not
system directories.
Unix commands
reference card
August 1998
b017.9808
To access this guide on the
World Wide Web, set your browser to
http//www.indiana.edu/~uitspubs/b017/
Abbreviations used in this pamphlet
Ctrl/x hold down control key and
press x
d directory
env environment
f filename
n number
nd computer node
var variable
[y/n] yes or no
[] optional arg
... list
I N D I A N A U N I V E R S I T Y
U N I V E R S I T Y I N F O R M A T I O N T E C H N O L O G Y S E R V I C E S
Press RETURN at the end of each command, except those marked by an asterisk (*).
Environment Control
Command Description
cd d Change to directory d
mkdir d Create new directory d
rmdir d Remove directory d
mv f1 [f2...] d Move file f to directory d
mv d1 d2 Rename directory d1 as d2
passwd Change password
alias name1 name2 Create command alias
unalias name1 Remove command alias name1
rlogin nd Login to remote node
logout End terminal session
setenv name v Set env var to value v
unsetenv name1 name2...] remove environment variable
Output, Communication, & Help
Command Description
lpr -P printer f Output file f to line printer
script [f] Save terminal session to f
exit Stop saving terminal
session
mail username Send mail to user
biff [y/n] Instant notification of mail
man name UNIX manual entry for
name
learn Online tutorial
Process Control
Command Description
Ctrl/c * Interrupt processes
Ctrl/s * Stop screen scrolling
Ctrl/q * Resume screen output
sleep n Sleep for n seconds
jobs Print list of jobs
kill [%n] Kill job n
ps Print process status stats
kill -9 n Remove process n
Ctrl/z * Suspend current process
stop %n Suspend background job n
command& Run command in background
bg [%n] Resume background job n
fg [%n] Resume foreground job n
exit Exit from shell
Environment Status
Command Description
ls [d] [f...] List files in directory
ls -1 [f...] List files in detail
alias [name] Display command aliases
printenv [name] Print environment values
quota Display disk quota
date Print date & time
who List logged in users
whoami Display current user
finger [username] Output user information
chfn Change finger information
pwd Print working directory
history Display recent commands
! n Submit recent command n
File Manipulation
Command Description
vi [f] Vi fullscreen editor
emacs [f] Emacs fullscreen editor
ed [f] Text editor
wc f Line, word, & char count
cat f List contents of file
more f List file contents by screen
cat f1 f2 > f3 Concatenates f1 & f2 into f3
chmod mode f Change protection mode of f
cmp f1 f2 Compare two files
cp f1 f2 Copy file f1 into f2
sort f Alphabetically sort f
split [-n] f Split f into n-line pieces
mv f1 f2 Rename file f1 as f2
rm f Delete (remove) file f
grep ‘ptn’ f Outputs lines that match ptn
diff f1 f2 Lists file differences
head f Output beginning of f
tail f Output end of f
Compiler
Command Description
cc [-o f1] f2 C compiler
lint f Check C code for errors
f77 [-o f1] f2 Fortran77 compiler
pc [-o f1] f2 Pascal compiler

More Related Content

PPT
Dos ckass nots
PDF
50 most frequently used unix linux commands (with examples)
PPTX
Unix slideshare
PDF
One Page Linux Manual
PDF
Unix Command-Line Cheat Sheet BTI2014
PDF
CMD Command prompts
PPT
Gnome terminal basics
DOCX
Dos command for hackers
Dos ckass nots
50 most frequently used unix linux commands (with examples)
Unix slideshare
One Page Linux Manual
Unix Command-Line Cheat Sheet BTI2014
CMD Command prompts
Gnome terminal basics
Dos command for hackers

What's hot (19)

PDF
Linux cheat-sheet
DOCX
Comands of dos
PPT
Common linux ubuntu commands overview
PDF
Command line for the beginner - Using the command line in developing for the...
PDF
[PDF] 2021 Termux basic commands list
PPT
PDF
Useful Linux and Unix commands handbook
PDF
Unix / Linux Command Reference
DOCX
50 most frequently used unix
PDF
Linux Commands - 3
PDF
PDF
Linux Bash Shell Cheat Sheet for Beginners
PPT
Linux day 1
PDF
Termux commands-list
DOCX
PDF
Basic linux commands for bioinformatics
PPT
Internal commands.29to30
PDF
Basic linux commands
DOCX
Internal commands of dos
Linux cheat-sheet
Comands of dos
Common linux ubuntu commands overview
Command line for the beginner - Using the command line in developing for the...
[PDF] 2021 Termux basic commands list
Useful Linux and Unix commands handbook
Unix / Linux Command Reference
50 most frequently used unix
Linux Commands - 3
Linux Bash Shell Cheat Sheet for Beginners
Linux day 1
Termux commands-list
Basic linux commands for bioinformatics
Internal commands.29to30
Basic linux commands
Internal commands of dos
Ad

Viewers also liked (16)

PPTX
Presentation of awk
PDF
Shaping the Future - Ruth McKernan opening Innovate 2016 - innovation in the UK
PDF
Worldwide Campuses of SC Study Centers
PDF
Gazon synthetique Sun Valley - Gazonsynthetique24.com
PPTX
Presentatie process mining_Zorgoverleg BI_2014_12
DOCX
Aplicacion de la norma covenin en una empresa
PDF
Motores eléctricos de corriente continua
PPTX
Презентация для конкурса "Вожатый и его команда"
PPSX
Школьная пресса
PPTX
Кадетский класс
DOCX
Learning Grep
DOCX
Formato planificación
PPS
Unix - Class7 - awk
PPTX
Filepermissions in linux
PDF
Embriaguez de Noé
PDF
Caín y Abel
Presentation of awk
Shaping the Future - Ruth McKernan opening Innovate 2016 - innovation in the UK
Worldwide Campuses of SC Study Centers
Gazon synthetique Sun Valley - Gazonsynthetique24.com
Presentatie process mining_Zorgoverleg BI_2014_12
Aplicacion de la norma covenin en una empresa
Motores eléctricos de corriente continua
Презентация для конкурса "Вожатый и его команда"
Школьная пресса
Кадетский класс
Learning Grep
Formato planificación
Unix - Class7 - awk
Filepermissions in linux
Embriaguez de Noé
Caín y Abel
Ad

Similar to Unix command quickref (20)

DOC
58518522 study-aix
PDF
3.1.a linux commands reference
TXT
PDF
Linux Cheat Sheet.pdf
PPTX
Unix Shell Script - 2 Days Session.pptx
PPT
3. intro
PPT
Linux Administration
PPT
Linux Administration
PPSX
Unix environment [autosaved]
PPT
Unix tutorial-08
PPTX
Presentation for RHCE in linux
PPT
cisco
PPTX
Linux administration training
PPTX
Basic Linux Administration - 3.pptxon server
PPT
A Quick Introduction to Linux
PDF
Lecture1 2 intro-unix
PPTX
2. UNIX OS System Architecture easy.pptx
PPT
PowerPoint_merge.ppt on unix programming
PPTX
Linux Presentation
PPT
8.1.intro unix
58518522 study-aix
3.1.a linux commands reference
Linux Cheat Sheet.pdf
Unix Shell Script - 2 Days Session.pptx
3. intro
Linux Administration
Linux Administration
Unix environment [autosaved]
Unix tutorial-08
Presentation for RHCE in linux
cisco
Linux administration training
Basic Linux Administration - 3.pptxon server
A Quick Introduction to Linux
Lecture1 2 intro-unix
2. UNIX OS System Architecture easy.pptx
PowerPoint_merge.ppt on unix programming
Linux Presentation
8.1.intro unix

More from Arduino Aficionado (15)

PDF
Garagino doc
PDF
PDF
Scala cheatsheet
PDF
Xm lquickref
PDF
Html xhtml tag-sheet
PDF
Ruby on rails_cheat_sheet
PDF
Pqrc 2.4-a4-latest
PDF
Nmap5.cheatsheet.eng.v1
PDF
Matlab quickref
PDF
Java quickref
RTF
Eclipse emacskeybindings 3_1
PDF
Refcard en-a4
PDF
Cpp reference sheet
PDF
Core c sharp and .net quick reference
Garagino doc
Scala cheatsheet
Xm lquickref
Html xhtml tag-sheet
Ruby on rails_cheat_sheet
Pqrc 2.4-a4-latest
Nmap5.cheatsheet.eng.v1
Matlab quickref
Java quickref
Eclipse emacskeybindings 3_1
Refcard en-a4
Cpp reference sheet
Core c sharp and .net quick reference

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Big Data Technologies - Introduction.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Teaching material agriculture food technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx
The AUB Centre for AI in Media Proposal.docx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Unix command quickref

  • 1. Working with NFS files Files saved on the UITS central Unix computers Chrome, Cobalt, Zinc, Steel, EZinfo, and STARRS/SP are stored on the Network File Server (NFS). That means that your files are really on one disk, in directories named for the central Unix hosts on which you have accounts. No matter which of these computers you are logged into, you can get to your files on any of the others. Here are the commands to use to get to any system directory from any other system: cd /N/u/username/Chrome/ cd /N/u/username/Cobalt/ cd /N/u/username/Zinc/ cd /N/u/username/Steel/ cd /N/u/username/Ezinfo/ cd /n/u/username/SP/ Be sure you use the capitalization just as you see above, and substitute your own username for username. For example, if Jessica Rabbit is logged into her account on Steel, and wants to get a file on her EZinfo account, she would enter: cd /N/u/jrabbit/Ezinfo/ Now when she lists her files, she’ll see her EZinfo files, even though she’s actually logged into Steel. You can use the ordinary Unix commands to move files, copy files, or make symbolic links between files. For example, if John Doe wanted to move “file1” from his Steel directory to his EZinfo directory, he would enter: mv -i /N/u/jdoe/Steel/file1 /N/u/jdoe/Ezinfo/ This shared file system means that you can access, for example, your Chrome files even when you are logged into Cobalt, and vice versa. However, if you are logged into Chrome, you can only use the software installed on Chrome —only users’ directories are linked together, not system directories. Unix commands reference card August 1998 b017.9808 To access this guide on the World Wide Web, set your browser to http//www.indiana.edu/~uitspubs/b017/ Abbreviations used in this pamphlet Ctrl/x hold down control key and press x d directory env environment f filename n number nd computer node var variable [y/n] yes or no [] optional arg ... list I N D I A N A U N I V E R S I T Y U N I V E R S I T Y I N F O R M A T I O N T E C H N O L O G Y S E R V I C E S
  • 2. Press RETURN at the end of each command, except those marked by an asterisk (*). Environment Control Command Description cd d Change to directory d mkdir d Create new directory d rmdir d Remove directory d mv f1 [f2...] d Move file f to directory d mv d1 d2 Rename directory d1 as d2 passwd Change password alias name1 name2 Create command alias unalias name1 Remove command alias name1 rlogin nd Login to remote node logout End terminal session setenv name v Set env var to value v unsetenv name1 name2...] remove environment variable Output, Communication, & Help Command Description lpr -P printer f Output file f to line printer script [f] Save terminal session to f exit Stop saving terminal session mail username Send mail to user biff [y/n] Instant notification of mail man name UNIX manual entry for name learn Online tutorial Process Control Command Description Ctrl/c * Interrupt processes Ctrl/s * Stop screen scrolling Ctrl/q * Resume screen output sleep n Sleep for n seconds jobs Print list of jobs kill [%n] Kill job n ps Print process status stats kill -9 n Remove process n Ctrl/z * Suspend current process stop %n Suspend background job n command& Run command in background bg [%n] Resume background job n fg [%n] Resume foreground job n exit Exit from shell Environment Status Command Description ls [d] [f...] List files in directory ls -1 [f...] List files in detail alias [name] Display command aliases printenv [name] Print environment values quota Display disk quota date Print date & time who List logged in users whoami Display current user finger [username] Output user information chfn Change finger information pwd Print working directory history Display recent commands ! n Submit recent command n File Manipulation Command Description vi [f] Vi fullscreen editor emacs [f] Emacs fullscreen editor ed [f] Text editor wc f Line, word, & char count cat f List contents of file more f List file contents by screen cat f1 f2 > f3 Concatenates f1 & f2 into f3 chmod mode f Change protection mode of f cmp f1 f2 Compare two files cp f1 f2 Copy file f1 into f2 sort f Alphabetically sort f split [-n] f Split f into n-line pieces mv f1 f2 Rename file f1 as f2 rm f Delete (remove) file f grep ‘ptn’ f Outputs lines that match ptn diff f1 f2 Lists file differences head f Output beginning of f tail f Output end of f Compiler Command Description cc [-o f1] f2 C compiler lint f Check C code for errors f77 [-o f1] f2 Fortran77 compiler pc [-o f1] f2 Pascal compiler