Code Monkey home page Code Monkey logo

tc_commands's People

Contributors

amc-dyn avatar behnle avatar elkef avatar esrasoysal avatar gurlis avatar jhenrichsmeyer avatar kyleacheson avatar m-thelen avatar reinholdfink avatar tc-sem4akf avatar

Watchers

 avatar

tc_commands's Issues

cd../ command

Hi,

In the file terminal_basics.txt, you write:

2.) cd ../
changes the current directory to the parent directory (Level up)

Is the / really necessary for this command?

cluster commands: barrilero

Hi,

You wrote:

  • If el barrilero is on your group, be careful, he is muuuuuuy estupido

I don't agree! Do you really want this line to be kept?

cluster commands: what do variables mean?

Hi,

You write

  • an examplary submission script that submits a calculation
    with a Python script named hello.py looks as follows:
    #!/bin/sh

Grid Engine options (lines prefixed with #$)

#$ -N hello
#$ -cwd
#$ -l h_rt=00:05:00
#$ -l h_vmem=1G

These options are:

job name: -N

use the current working directory: -cwd

runtime limit of 5 minutes: -l h_rt

memory limit of 1 Gbyte: -l h_vmem

Initialise the environment modules

. /etc/profile.d/modules.sh

Load Python

module load python/3.4.3

Run the program

./hello.py

What do all these variables mean and which are save to change, and which are not?

vi.txt: typo

Hi,

You have a typo in the following line:
R replace charcters starting with character under cursor

It should be "characters".

Best wishes

jamil- issues

ls -h does not show the files size, it only shows the directories within the folder, it is basically as doing ls, but ls-hl does work and shows the files size.

Find command

Hi,

The following lines say:

find . -name ".f"
tries to find all files below "."

Does this find all files below .? And what is "."?

Improving the documentation for the 'ls' command

File: terminal_basics.txt

I find the documentation for the usage of the 'ls' command (line 17) is missing a critical point:
It is undocumented where and how to use the options (-l, -a, -h) in the command.

I suggest adding a short explanation on how to do this, to make it clearer for the reader.

Shouldn't grep be included in get_information.txt instead?

Hi,

You have included grep in the file basic_terminal.txt. Shouldn't this command rather be in get_information.txt?

1.) grep --after-context=8 "guacamole" salads.txt > avocado_love.txt
looks for guacamole in the file salads.txt and writes the following 8 lines to the file avocado_love.txt
stitched

weird description in terminal_basics.txt

Hi,

You write:

all 1.) mkdir cookbook
the creates the directory cookbook
places
I 1a) for i in {25..45..1};do echo $i; mkdir $i; done
have creates the subdirectories 25, 26, 27, ..., 45
been

Why do you have the words "places" and "been"?

cluster commansd: PID

Hi,

You write:

  • Sometimes you will realize a job you just submitted has some error. It is a good practice to kill it before starting a new one. Having a list with your PID's also helps in that task if your user is shared

What is a PID?

cluster commands: slurm

Hi,

What is slurm and why are the commands for submitting jobs so different to the Edinburgh description?

cluster commands

Hi,

You wrote:

Ressource allocations and job settings use the #SBATCH specifier.

Where do I put those?

Commands to the terminal are undocumented

This issue affects the file:
terminal_basics.txt

Are contributions to interactions with the terminal considered helpful in this document?

Currently, a subset of cureutils is introduced here with minimal descriptions of ther usage and use cases. I propose an expansion of this document to basic commands issued to the terminal itself, starting with:

CTRL + L or
โŒƒ + L on Apple
Holding the control (Ctrl) key while pressing the letter L key will clear the screen of the current terminal.

ls ./ in terminal_basics

Hi,

In the file terminal_basics.txt, you write:

4.)ls ./
list content of current directory.

Is the ./ really necessary for this command?

cluster commands

Hi,

You wrote:
Remember to change the libraries for every run, if you do not source Tensorflow in your submitting script, you will not be able to use it later.

Why do I have to changeg them every time? What if I load them in my runscript automatically and want to use the same libraries every time. And what is Tensorflow?

Include filename expansion in `terminal_basics.txt`

Shell Globbing

After the inclusion of tab completion in #30 the expansion of filenames by the shell using the asterisk * wild card may additionally included.

The asterisk * matches everything in the current directory (excluding ./, ../, and any filename starting with a period, e.g. .bashrc) or the greatest possible match with the pattern given before or after it. This way, may similar files can be acted upon using only one command.

Example

Suppose there are several files in the current directory. Some are Python scripts ending in .py, some are folders (indicated below with a trailing forward slash /) starting with 001- in their filename, and others match neither of these two requirements. A file listing may show:

001-1/  001-4/  001-7/  001-do_not_delete.txt  results/
001-2/  001-5/  001-8/  export-results.py      run-calculations.py
001-3/  001-6/  001-9/  heisenberg.jpeg        terminal_basics.txt

Suppose all folders starting with 001- are to be deleted retainig the results folder, all Python scripts copied one folder up, and all other files left untouched.

This can be acieved with two commands:

rm -r 001-*/
cp *.py ../

In the first line any file with a filename starting with 001- and also ending with a / (identifying it as directory) is deleted.
The second line matches any file with a filename ending in .py.

The example listing after execution of the two commands is

001-do_not_delete.txt  heisenberg.jpeg  run-calculations.py
export-results.py      results/         terminal_basics.txt

with only the undesired folders removed and the Python scripts also available in the folder above the current one.

remotely: EDI

Hi,

You write,

Know the IP address of your remote computer

How do I get that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.