Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[~CMD] history #1

Closed
Sandoramix opened this issue Apr 20, 2024 · 0 comments
Closed

[~CMD] history #1

Sandoramix opened this issue Apr 20, 2024 · 0 comments
Labels
new New feature or request

Comments

@Sandoramix
Copy link
Owner

Sandoramix commented Apr 20, 2024

Implementare il commando history

  • Deve mostrare tutte le linee inviate al terminale. Ogni linea e' identificata dal suo numero (ordine) di esecuzione.
  • Es:
    • history
    • Risultato:
         1  2024-04-20 15:04  cat nohup.out
         2  2024-04-20 15:04  history
         3  2024-04-20 15:04  ls
         4  2024-04-20 15:04  ls -l
         5  2024-04-20 15:04  ls -l | grep 4060
         6  2024-04-20 15:04  ls -l | grep 4096
         7  2024-04-20 15:04  echo "test"
         8  2024-04-20 15:04  echo $TEST
         9  2024-04-20 15:04  echo $USER
        10  2024-04-20 15:05  history
        11  2024-04-20 15:05  nano test
        12  2024-04-20 15:05  cat test
        13  2024-04-20 15:05  nano test
        14  2024-04-20 15:05  history
        15  2024-04-20 15:05  ls
        16  2024-04-20 15:05  sl
      
  • Non deve salvare il heredoc (<<)
    • Es:
        17  2024-04-20 15:18  << EOF\nCIAO\nEOF
      

Forse si puo' semplificare togliendo le colonne della data e l'ora.

    1  cat nohup.out
    2  history
    3  ls
    4  ls -l
    5  ls -l | grep 4060
    6  ls -l | grep 4096
    7  echo "test"
    8  echo $TEST
    9  echo $USER
   10  history
   11  nano test
   12  cat test
   13  nano test
   14  history
   15  ls
   16  sl
@Sandoramix Sandoramix added the new New feature or request label Apr 20, 2024
@Sandoramix Sandoramix changed the title Commando history [CMD] history Apr 20, 2024
@Sandoramix Sandoramix changed the title [CMD] history [~CMD] history Apr 20, 2024
@Sandoramix Sandoramix mentioned this issue May 1, 2024
9 tasks
@Sandoramix Sandoramix mentioned this issue May 10, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant