Linux Useful commands
1. To rename a file in ubuntu
Syntax : mv filename1 filename2
e.g. If we need to change a filename to indexold from index.php
mv index.php indexold
2. To rename a folder
Syntax : mv foldername1 foldername2
e.g To rename letsknowit folder to letsknowitnew
mv letsknowit/ letsknowitnew
3. Copy a file to other location (keep the original file and make a duplicate of it)
Syntax: cp filename targetpath/
e.g. Copy a file letsknowit.txt to var/log folder
cp letsknowit.txt /var/log/
4. To copy a file from a remote server to a our local machine
Syntax : scp username@hostname:/filetodownlod /localpath
e.g. If we want to download payment.log file from var/logs folder to out logs folder
scp root@11.1.1.1:var/log/payment.log /var/www/html/logs
5. To clear the contents of a file
Syntax : > filename
e.g If we want to clear the content of letsknowit.log
> letsknowit.log
6. To delete the files have some specific extension
Syntax : rm *.extension
e.g If we want to delete all the files have a .gz extension
rm *.gz
Honestly, I was swamped with assignments and didn't know how to manage it all. Then I stumbled upon this service. I was skeptical at first, but the experience blew me away. buy dissertation uk The guidance they provide is so detailed, it’s like having your own personal tutor. Plus, they always finish ahead of time which is a huge relief. I have to say, the work quality is top-notch and the customer service is just superb.
You have to slide and combine tiles that have the same album cover in order to build new ones in the game 2048 Taylor Swift
Excellent breakdown of Linux commands. Your examples truly clarify the processes involved making it easier for beginners to grasp these essential functions.
Money Investment Company in Los Angeles CA
If we want to download payment.log file from var/logs folder to out logs folder geometry dash scratch
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site