≡ Menu

cat command

What Does –– (double dash) Mean In SSH Shell 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…]

HowTo: Save The Output Of A Linux/Unix Command To A File

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…]

Linux / Unix: Use Cat Command To Append Data To a File

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…]

Linux: At What Time Cron Entries In cron.daily, cron.weekly, cron.monthly Run?

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…]

Linux: List All Environment Variables Command

How do I display all my environment variables using bash shell on RHEL / Debian / Ubuntu / CentOS / Fedora / Mint Linux operating systems?
[click to continue…]

Unix Create a File Command

I'm a new Unix user. How do I create a file from bash prompt without using GUI tools? How to create a file in Unix from terminal window? What's the easiest and best way to create a file in Unix?
[click to continue…]

Linux / Unix Command To Find Out NFS Clients Connected To My NFS Server

How do I find out how many nfs clients are connected to NFS server running on Red Hat Enterprise Linux?
[click to continue…]