Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

cat command in linux

cat command allows us to 
create single or multiple files,view contain of file, concatenate files and redirect output in terminal or files.

Comment

cat command

# cat command be used to show, create and redirect the contents of file
# create file called test.txt and ask for input
cat >test.txt
# show command 
cat text.txt
# Combinint multiple files into single files
cat text text2 text3 > text3
Comment

cat stands for in linux

Cat is short for concatenate. This command displays the contents of one or more files without having to open the file for editing.
Comment

cat linux

cat file # Prints content of file in console
cat file1 file2 > file3 # Prints content of file1 and file2 into file3
cat -n file # Prints content of file enumerated (-n)
Comment

cat command

$cat filename
# will output file content to stdout
Comment

what is the use of cat command in linux

cat command allows us to 
create single or multiple files,view contain of file, concatenate files and redirect output in terminal or files.

Cat is short for concatenate. This command displays the contents of one or more files without having to open the file for editing.
Comment

PREVIOUS NEXT
Code Example
Shell :: bash find and replace all files with specifc name with another file 
Shell :: bash delete a command line 
Shell :: generate ssh key linux 
Shell :: ubuntu git 
Shell :: mac terminal screenshot 
Shell :: merging a branch to master 
Shell :: github how to add ssh key 
Shell :: redis dockerhub 
Shell :: filter jq 
Shell :: deleting a remote branch 
Shell :: install gitlab runner 
Shell :: bash ps sort by time 
Shell :: how force detached ENI 
Shell :: linux shutdown no password 
Shell :: ubuntu 20.4 uninstall cloud image 
Shell :: powershell equivalent of rm 
Shell :: reload swi prolog 
Shell :: Default umask in /etc/login.defs could be more strict like 027 
Shell :: Run multiple commands over SSH as sudo 
Shell :: airodump output to file 
Shell :: prepare ansible playbook to setting up production grade server in kubernetes 
Shell :: Linux waitptid function 
Shell :: permission denied while running startup.sh in linux 
Shell :: webpack for old browser 
Shell :: lavastore js 
Shell :: no matches found: *.dmg 
Shell :: run command from history ubuntu 
Shell :: zsh arithmetic 
Shell :: gnome disks mount read write 
Shell :: wslcopy to system clipboard 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =