User Tools

Site Tools


linux_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux_notes [2024/10/05 23:59] – [tput: unknown terminal "xterm-256color"] rajulinux_notes [2024/11/04 16:23] (current) – [Why is the shell called as such?] raju
Line 120: Line 120:
 From https://www.linuxdoc.org/HOWTO/Unix-and-Internet-Fundamentals-HOWTO/running-programs.html From https://www.linuxdoc.org/HOWTO/Unix-and-Internet-Fundamentals-HOWTO/running-programs.html
 > The shell is Unix's interpreter for the commands you type in; it's called a shell because it wraps around and hides the operating system kernel. It's an important feature of Unix that the shell and kernel are separate programs communicating through a small set of system calls. This makes it possible for there to be multiple shells, suiting different tastes in interfaces. > The shell is Unix's interpreter for the commands you type in; it's called a shell because it wraps around and hides the operating system kernel. It's an important feature of Unix that the shell and kernel are separate programs communicating through a small set of system calls. This makes it possible for there to be multiple shells, suiting different tastes in interfaces.
 +
 +===== Tips =====
 +
 +==== cat show filename ====
 +Use "tail -n +1" to show the filename when displaying its contents. For example
 +<code>
 +tail -n +1 file1.txt file2.txt file3.txt
 +</code>
 +
 +Ouptut:
 +<code>
 +==> file1.txt <==
 +<contents of file1.txt>
 +
 +==> file2.txt <==
 +<contents of file2.txt>
 +
 +==> file3.txt <==
 +<contents of file3.txt>
 +</code>
  
linux_notes.txt · Last modified: 2024/11/04 16:23 by raju