≡ Menu

cat command

I see lots of seasoned admins and cloud provider wrapper scripts use ssh client command as follows in shell:

ssh nixcraft@server1.cyberciti.biz --

What the double -- (dash) does here? Why it is used in this shell command and why not just use the following?

ssh nixcraft@server1.cyberciti.biz
[click to continue…]

Linux / Unix: Add Line Numbers To Files

I know how to display line numbers using vim text editor. How do display line numbers in the left side for any text file under Unix or Linux operating systems?
[click to continue…]

Ubuntu Linux: Concatenate Text Files Command

How do I concatenates the text files called first.doc and second.doc and writes the result to final.doc under Ubuntu Linux operating systems?
[click to continue…]

I am new Linux and Unix-like system user who recently switched from MS-Windows XP. How do I save the output of a Linux / Unix ls command to a file named "lists.txt" using command prompt or POSIX shell such as SH/KSH/BASH?
[click to continue…]

Linux/Unix: Cat Command Display Line Numbers

How do I use the cat command to display the line numbers for a file called myapp.c under Linux or Unix like operating systems?
[click to continue…]

I am a new Unix user. I have Debian Linux installed. I need to append text to a file called daily.log. How do I use the cat command to append data to a file?
[click to continue…]

I have followed this cron setup tutorial. I am using Red Hat Enterprise Linux server 6 on Dell poweredge server. I would like to know when does entries in /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly run on CentOS/RHEL v6.x/7.x and Debian / Ubuntu Linux server?
[click to continue…]