Skip to main content
  1. Archives/

Am I the only person who gets ln -s the wrong way round every time?

··105 words·1 min·
Tips & How-To's Commands Linux

ln -s d1 d2 # Am I the only person who gets this the wrong way round every fucking time?

Similar to most people who have posted there - I used to still get it wrong every time. It’s become a habit for me to do a man ln or ln -help before I execute this command :\

Great tip here though:

but then I finally found out about the relationship between ln and cp

cp existing new

ln -s existing new

via ln -s d1 d2 # Am I the only person who gets this the wrong way round every fucking time? : programming.

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

Removing file named -rf in Unix
··66 words·1 min
Tips & How-To's Commands Linux Tutorials
I did something crazy at some point that created a file called “-rf” on my filesystem. Now I can’t figure out how to delete it. I’ve tried rm "-rf" rm \-rf But these just exit immediately. Arrgh! Anyone know how to remove this file? Preferably without accidentally cleaning out my whole folder. heh. What’re the odds, eh? via Removing “-rf” file in Unix - Super User.
[How-To] Display A List of All Partitions, Device Info and Filesystem Type In Linux
··289 words·2 mins
Tips & How-To's Commands Linux
In my previous posts I’d written on how to mount your partitions using the mount command. In the post I’d mentioned that you’d have to mention the partition that you want to mount by specifying /dev/device_name as part of the command. The question that would come to your mind is, How do I know which of my partition is on what device? So let me show how to find out which partition is on what device!
[How To]Setup a BSNL DataOne BroadBand connection or a DSL Connection in Linux
··431 words·3 mins
Tips & How-To's Commands Linux Tutorials
Remember that all these assumes that your router is connected to the LAN port, if it’s connected to the USB port, then disconnect it and connect to the LAN port. If you dont have a LAN card, then consider getting one. It’s cheap, costs around Rs. 200. Next, it’s best to have the router configured in pppoe mode. In this case you just have to switch on the router, the router and DHCP will take care of the rest.