User:Ellie/commands: Difference between revisions

From CommunityData
mNo edit summary
mNo edit summary
 
Line 17: Line 17:


ls -l : show how many lines
ls -l : show how many lines
wc -l: word count by lines


ls -s : show size  
ls -s : show size  

Latest revision as of 22:07, 8 May 2023

How to Copy Data from Hyak to Local Machine:

scp hyak: /[paste from[pwd]/nameoffile .

Other useful stuff:

any_machine: for a workspace node

[program] [written program or script] : pick a program and run it with this. Example: python3 make_wikiq_runs_nopersistence-20230309.py

htop: to see what is happening on machines

parallel: to use all machines at once

cat more less: to view what is inside a file

ls -l : show how many lines

wc -l: word count by lines

ls -s : show size

ls -sh : show size in human legibility

cwd :current working directory

pwd :print working directory

gwd : get working directory

cd : change directory

cd ../ : change directory back one

rm : remove

-rm : remove a directory Bonus

curl http://wttr.in/ : to see the weather