

The ‘rm’ command removes files from the system without confirmation. Note: Only text files can be displayed and combined using this command. To view the new combo file “sample” use the command cat sample It will only show a message when something goes wrong or when an error has occurred. Shell Commands will never give you a confirmation message like “OK” or “Command Successfully Executed”. This is because Bash Shell (Terminal) is silent type. The syntax to combine 2 files is – cat file1 file2 > newfilenameĪs soon as you insert this command and hit enter, the files are concatenated, but you do not see a result. To view a file, use the command – cat filename How to create and view files in Linux/Unix

Press ‘ctrl + d’ to return to command prompt. It can also be used for copying, combining and creating new text files. The ‘cat’ server command is used to display text files. Hidden items in UNIX/Linux begin with – at the start, of the file or directory.Īny Directory/file starting with a ‘.’ will not be seen unless you request for it.
