SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
Kanchilug
 
Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
myrajendra
 

La actualidad más candente (19)

Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Comands of dos
Comands of dosComands of dos
Comands of dos
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
[PDF] 2021 Termux basic commands list
[PDF] 2021 Termux basic commands list [PDF] 2021 Termux basic commands list
[PDF] 2021 Termux basic commands list
 
Linux
LinuxLinux
Linux
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Linux day 1
Linux day 1Linux day 1
Linux day 1
 
Termux commands-list
Termux commands-listTermux commands-list
Termux commands-list
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Internal commands.29to30
Internal commands.29to30Internal commands.29to30
Internal commands.29to30
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 

Destacado

Aplicacion de la norma covenin en una empresa
Aplicacion de la norma covenin en una empresaAplicacion de la norma covenin en una empresa
Aplicacion de la norma covenin en una empresa
Ruben Dario
 
Motores eléctricos de corriente continua
Motores eléctricos de corriente continuaMotores eléctricos de corriente continua
Motores eléctricos de corriente continua
Ruben Dario
 
Кадетский класс
Кадетский классКадетский класс
Кадетский класс
dalton1k
 

Destacado (16)

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

Similar a Unix command quickref (20)

Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
 
33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)33269198 all-commands-in-ms-dos(1)
33269198 all-commands-in-ms-dos(1)
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
Unix Commands Quick Guide
Unix Commands   Quick GuideUnix Commands   Quick Guide
Unix Commands Quick Guide
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
 
Raj linux
Raj linux Raj linux
Raj linux
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
basic-unix.pdf
basic-unix.pdfbasic-unix.pdf
basic-unix.pdf
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 

Más de Arduino Aficionado (15)

Garagino doc
Garagino docGaragino doc
Garagino doc
 
Netfx4
Netfx4Netfx4
Netfx4
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
Scala cheatsheet
Scala cheatsheetScala cheatsheet
Scala cheatsheet
 
Xm lquickref
Xm lquickrefXm lquickref
Xm lquickref
 
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheet
 
Ruby on rails_cheat_sheet
Ruby on rails_cheat_sheetRuby on rails_cheat_sheet
Ruby on rails_cheat_sheet
 
Pqrc 2.4-a4-latest
Pqrc 2.4-a4-latestPqrc 2.4-a4-latest
Pqrc 2.4-a4-latest
 
Nmap5.cheatsheet.eng.v1
Nmap5.cheatsheet.eng.v1Nmap5.cheatsheet.eng.v1
Nmap5.cheatsheet.eng.v1
 
Matlab quickref
Matlab quickrefMatlab quickref
Matlab quickref
 
Java quickref
Java quickrefJava quickref
Java quickref
 
Eclipse emacskeybindings 3_1
Eclipse emacskeybindings 3_1Eclipse emacskeybindings 3_1
Eclipse emacskeybindings 3_1
 
Refcard en-a4
Refcard en-a4Refcard en-a4
Refcard en-a4
 
Cpp reference sheet
Cpp reference sheetCpp reference sheet
Cpp reference sheet
 
Core c sharp and .net quick reference
Core c sharp and .net quick referenceCore c sharp and .net quick reference
Core c sharp and .net quick reference
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

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