unix command line, e.g. find, to run a script on many binary files that outputs it to a .txt file

i’d like to run a script, say convert.py (which converts binary to ascii, but outputs to stdout) on 30 or so *.gz files, but instead of output going to screen, it goes to a *.txt file, similar to so: convert.py jonny.gz > jonny.txt how would i do it with a for loop or find command? thanks

How to chain unix commands in jupyter notebooks while on windows 10?

My Os is windows 10 and I am using a jupyter notebook from anaconda prompt.

When I type !pwd it works, When I type !ls -l it works, But when I want to chain the commands and output them to an output file e.g. !(pwd; ls-l) > out.txt it says: “pwd: unknown option — l Try ‘pwd –help’ for more information.”

Does anyone know how to chain these commands and output them to a file?

Thank you in advance

Is C the fastest language because most kernels are written in C viz. Unix, DOS and Macintosh?

Hypothetically if there were an OS named YAOS(yet another OS) written in ALWAC (Another language with another compiler), assuming ALWAC is assembly optimized of course. Would ALWAC be comparable to C in performance, given that C is the fastest language that there is.

To rephrase the question: Would it be a good idea to write a language specifically for a kernel plugin like Symbian OS, Purity OS or Nutanix OS to speed up the development without compromising C like performance? A language native to an OS/kernel module, if you will. I mean, C came after Unix, historically, which is what raised this doubt.

Testing connectivity between Unix and Windows servers

I am doing a failover activity between 2 data centers.

In 1 data center, 1 Oracle database on Linux is replicating data to 1 SQL Server database on Windows using a replication tool.

There is storage level replication for the Windows server, so during the failover activity, the entire VM will failover with the same name, except with a different IP address.

The source is sending a SYN to the (new) target, but there is no evidence that the data packet is reaching the target, and there is no SYN/ACK being sent back.

How can I troubleshoot connectivity to find out if the problem is with Network firewall, Unix server, or Windows server?

(all teams say that there’s no issue from their side)

Should I log into both servers and run telnet with IP and port, or is there a better way?

Thank you.

ln и cp команды. unix

Нужно было перенести некоторые заглавные файлы библиотеки из одной директории в другую. Сделал это через обычное копирование cp /from/*.a /to/*.a но коллеги посоветовали сделать ссылку.

О команде ln услышал в первый раз и собственно не совсем могу понять, как soft link может мне решить проблему с отсутствием заголовочных файлов в некой директории. Почитал, что это фактически создании еще одной ссылки в inode на файл, но как это заменяет копирование?

ln -s /folder/header.a 

Почитал об этом, ниче не понимаю вообще. Как это работает?

Dual Boot – Windows 10 & Unix Mint Sylvia – 2 physical disks

I would need help on how to make this combination works. I am not new to dual booting/Unix installations, but now I’m really stucked. I have installed on my first disk (sda) windows 10. In the following, an example of output from windows terminal, I also have the whole full output of boot-repair, but it’s too long and I cannot attach it here.

DISKPART> list disk    Disk ###  Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  ---   Disk 0    Online          465 GB      0 B        *   Disk 1    Online          111 GB   111 GB 

In Mint GUI, disk0 is sda and disk1 is sdb. And here the volumes:

DISKPART> list volume    Volume ###  Ltr  Label        Fs     Type        Size     Status     Info   ----------  ---  -----------  -----  ----------  -------  ---------  --------   Volume 0     D                       DVD-ROM         0 B  No Media   Volume 1         Recovery     NTFS   Partition    499 MB  Healthy   Volume 2     C                NTFS   Partition    465 GB  Healthy    Boot   Volume 3                      FAT32  Partition     99 MB  Healthy    System 

At the moment, I have unallocated all disk1 to start from a clear disk (I have also shredded it and created a new partion table of type msdos – was this wrong? better gpt?).

I performed different tentatives, here a sampling, I would really glad if someone could lead me to the right path:

  • Tentative 1)

I perform the installation from a live USB stick of Linux Mint. During the installation, I create two partition (root and swap).

When the installer asks my for boot loader partion, I select sda.

Output: at restart, no grub menu. If I force to select the linux partition from the bios boot order, I get the “grub rescue” console

  • Tentative 2)

I perform the installation from a live USB stick of Linux Mint. During the installation, I create two partition (root and swap).

When the installer asks my for boot loader partion, I select sdb.

Output: at restart, no grub menu. If I force to select the linux partition from the bios boot order, I get a black console, with no indication of whatsever

I also tried other ways (but for sure some of those are wrong, in one of this I reached a normal “grub” console, but even in this way, no luck).

At the moment my biggest questions are:

  1. Should I shred the disk again and put inside a gpt instead of mddos (previous the initial shred, it was msdos, but I see that the windows disk is GPT)

  2. From what I see, Volume 2 of disk 0 is the windows boot partition. This (actual) configuration must stay true also after a successfull installation, or the boot partion must change (and become, for example, sdb1)

  3. Is it any useful to add in disk1 (sdb) a boot partition?

  4. If I leave an unallocated partition at the start of disk1/sdb of some MBs, is correct or wrong?

  5. I have removed the option of secure boot from bios. Is this correct?