ShellHacks
Command-Line Tips and Tricks

command-line

  • Blog

Format USB Drive in Linux – Command Line

Posted on May 5, 2020May 11, 2020by admin

Formatting USB drives in Linux from the command line (terminal) is very easy. In this note i will show how to format an external HDD, SSD or USB flash drive in Linux from the command line using mkfs utility. I will provide the examples of disk formatting to the most popular file system types: FAT32, […]

Read More
No comments yet
  • Blog

HowTo: Generate and Print a Sequences of Numbers with BASH

Posted on December 27, 2016February 24, 2017by admin

You don’t have to type a range of numbers by hands! BASH already has a built-in utility, named seq, for generating and printing a sequence of numbers. Generate a sequence of numbers Syntax: seq [OPTION]… FIRST Syntax: seq [OPTION]… FIRST LAST Print a sequence of numbers from 1 to 10: $ seq 1 5 1 […]

Read More
2 Comments
  • Blog

HowTo: Count Number of Files in a Directory

Posted on December 27, 2016February 24, 2017by admin

Here are the best ways of finding and counting the number of files or folders in a particular directory. Count the number of files in a current directory Using “ls” command: This method is the best, if you need to count a large number of files. $ ls -f . | wc -l This command […]

Read More
2 Comments
  • Blog

HowTo: Find Large Files in Linux

Posted on December 27, 2016February 24, 2017by admin

Finding the largest files is extremely useful especially when you you’re low on disk space and want to free it up. The best way to find the largest files on your Linux system is to use the command line. Actually there is no simple command to list the largest files in Linux. However, you can […]

Read More
No comments yet
  • Blog

Writing a Message to Logged in Users through the Terminal

Posted on December 27, 2016December 2, 2021by admin

To write a message to logged in users, you can use a write command. The write utility allows you to communicate with other users, by copying lines from your terminal to theirs. First of all you need to check who is currently logged in, and which terminal he is logged in to. $ who root […]

Read More
1 Comment

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory bash boot cmd command-line curl dns docker encryption git gitlab helm java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2023 | www.ShellHacks.com