Ubuntu 22.04 LTS | Lataa ja asenna | Tutustu yhteisöön | Blogi | Yritysten tarjoamat palvelutUusimmat julkaisut: 22.04.4 LTS (suositeltu, 22.2.2024) ja 23.10 (16.10.2023).
#!/bin/bashdate >> tulostuswho >> tulostusuptime >> tulostuscat tulostus
on varmasti juu...
#!/bin/bashdate | tee -a tulostuswho | tee -a tulostusuptime | tee -a tulostus
Koodia: [Valitse]#!/bin/bashdate | tee -a tulostuswho | tee -a tulostusuptime | tee -a tulostusTää on vähän lyhyempi muttei sen yksinkertaisempi
#!/bin/bash(date; who; uptime) | tee -a tulostus
alias tiedot='date|tee -a tulostus&&who|tee -a tulostus&&uptime|tee -a tulostus'
tiedot
Väänsin noista samantien aliaksen
alias tiedot='(date; who; uptime) | tee -a'