GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Ch 1 - Exploring Linux cmd tools

Archimed Nemes LPIC - book Easy Englisch 28 Karten

Karten in diesem Stapel (28)

  1. 1Display which shell /bin/sh points on a CentOS and Ubuntureadlink /bin/sh
  2. 2Display the current shell on a CentOS distributionecho $SHELL
  3. 3Display the current version on a CentOS distributionecho $BASH_VERSION
  4. 4Display the current shell on an Ubuntu distributionuname
  5. 5Display the current version on an Ubuntu distributionuname -r
  6. 6Display the system information on an Ubuntu distributionuname -a
  7. 7determine whether a echo command is external or internaltype echo
  8. 8Explain environment variablesEnvironment variables track specific system information, such as the name of the user logged into the shell, the default home directory for the user, the search path the shell uses to find executable programs, and so on.
  9. 9display active environment variablesset
  10. 10What happends when we execute program without full pathWhen you enter a program name (command) at the shell prompt, the shell will search all the directories listed in the PATH environment variable for that program. If the shell cannot
    fi nd the program, you will receive a command not found error message.
  11. 11How to view directories in which you do not need to write full pathecho $PATH
  12. 12It searches through the PATH directories to find the program. If it locates the program, it displays its absolute directory reference. What is name of command?which (example which hello.sh)
  13. 13search for keywords in the documentation.man -k
  14. 14View recent commandshistory
  15. 15Reexecute command 915 in history.!915
  16. 16reexecute your most recent command!!
  17. 17remove your command-line historyhistory -c
    history -w
  18. 18Concatenate numbers.txt random.txtcat numbers.txt random.txt
  19. 19Sort numbers in counts.txtsort -n counts.txt
  20. 20Number only non-blank text lines in example.txtnl example.txt
  21. 21number all text file lines in example.txtnl -ba example.txt
  22. 22View the last lines of example.txt starting from line 42tail -n +42
  23. 23Watch log files in /var/log/auth.logtail -f /var/log/auth.log
  24. 24display the fi le’s number of lines, words, and bytes in that order.wc
  25. 25Display the file’s line count.wc -l
  26. 26Display the file’s character count.wc -m
  27. 27Display the file’s word count.wc -w
  28. 28First lines of /etc/passwd root:x:0:0:root:/root:/bin/bash Display x and /bin/bashcut -d ":" -f 2,7 /etc/passwd

Informationen

Beschreibung
Easy LPIC - book Karteikarten am Ch 1 - Exploring Linux cmd tools, erstellt von Archimed Nemes am 12/12/2022.
Erstellt von
Archimed Nemes
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck