256 Kilobytes

Shell Scripting Comments

Type CommentsResponses to top-level threads. Category Shell ScriptingContent on shell scripts, such as those written in Bash, PowerShell, the Bourne shell, and the Linux console.

Profile Photo - August R. Garcia

Reply to ‚Äčin Linux systems, what file contains the settings for the dhcp service?

Comments in Shell Scripting | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

dhcpd.conf

Moredhcpd.conf Should be located at: /etc/dhcp/dhcpd.conf
🗨 1
🐏 0
👁 427
Profile Photo - entrokamoI
Profile Photo - entrokamoI

ls isn't actually a built-in for Windows...

Morels isn't actually a built-in for Windows. It's a command meant to be used on Unix machines such as those running MacOS or Linux. If you want to achiev...
🗨 1
🐏 0
👁 345
Profile Photo - Japanese

Reply to Best PowerShell scripting tutorials?

Comments in Shell Scripting | By Japanese

Published

Profile Photo - Japanese

Since this was developed by Microsoft in...

MoreSince this was developed by Microsoft in 2003, it makes sense to start with Microsoft tutorials. Microsoft Virtual Academy (MVA) has many tutorials on...
🗨 1
🐏 0
👁 365
Profile Photo - Edgelady43069
Profile Photo - Edgelady43069

The Base scripting keyword that terminat...

MoreThe Base scripting keyword that terminates a case statement is esac to end a case statement. Which is actually case spelled backwards.
🗨 1
🐏 0
👁 385
Profile Photo - Zhaybib
Profile Photo - Zhaybib

Many people who are interested in learni...

MoreMany people who are interested in learning PowerShell, will seek out a tutorial on the internet to help. Not all tutorials are created equal, but I wo...
🗨 1
🐏 0
👁 298
Profile Photo - roxblade

Reply to How to rename a file in Linux?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

An easy way to rename files in Linux is...

MoreAn easy way to rename files in Linux is through the mv command, short form for the move. It is used to move files from one place to another but can al...
🗨 1
🐏 0
👁 375
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Try the rename command. Syntax:

MoreTry the rename command. Syntax: Basic syntax: rename (option) 's/oldname/newname/' file1.txt file2.txt Test a rename regex on all file...
🗨 1
🐏 0
👁 3
Profile Photo - roxblade

Reply to What is $1 in Bash/Linux?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

These are basically positional parameter...

MoreThese are basically positional parameters. They are invoked by shell's arguments. So, a simple script like ./code.sh Hi there will make three position...
🗨 1
🐏 0
👁 382
Profile Photo - roxblade
Profile Photo - roxblade

/var/www/html or /var/www/It goes for bo...

More/var/www/html or /var/www/It goes for both kinds of installations: Ubuntu/Debian or CentOS/Red Hat/Fedora.You can also change this directory. Follow t...
🗨 1
🐏 0
👁 430
Profile Photo - roxblade
Profile Photo - roxblade

This is the best certification out of al...

MoreThis is the best certification out of all other Linux certifications. There are many other, but all those are specialized. Like the Red Hat Certified...
🗨 1
🐏 0
👁 391
Profile Photo - roxblade
Profile Photo - roxblade

apt-get update doesn't download or insta...

Moreapt-get update doesn't download or install anything. It just checks all your packages and sees if they have a newer version that can be installed. Thi...
🗨 1
🐏 0
👁 385
Profile Photo - roxblade

Reply to What format does Linux use?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

Shell scripting. It's not a programming...

MoreShell scripting. It's not a programming language, but a scripting language. It's in use since the time of UNIX to run the various commands of *NIX-bas...
🗨 1
🐏 0
👁 378
Profile Photo - roxblade

Reply to What is the best filesystem for Linux?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

The best file system for Linux distribut...

MoreThe best file system for Linux distributions is ext2 or ext4. ext2 is sort of like FAT32 as it doesn't do journaling. ext4 does journaling, like NTFS....
🗨 1
🐏 0
👁 368
Profile Photo - roxblade

Reply to Is NTFS supported by Linux?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

You can use NTFS as Linux distributions...

MoreYou can use NTFS as Linux distributions support read/write on NTFS file systems. If you mean to use NTFS for storage, then you are good to go, as it d...
🗨 1
🐏 0
👁 354
Profile Photo - roxblade

Reply to Is exFAT supported by Linux?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

Yes, it does support exFAT, but with a f...

MoreYes, it does support exFAT, but with a few packages first. sudo apt-get install exfat-fuse exfat-utilsThis will most probably do the job for you.
🗨 1
🐏 0
👁 364
Profile Photo - roxblade

Reply to Does Linux use NTFS or fat32?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

FAT32 is outdated and known as something...

MoreFAT32 is outdated and known as something close to Windows-only. Linux distributions like Ubuntu can read/write on both, NTFS and FAT32. For storage, y...
🗨 1
🐏 0
👁 365
Profile Photo - roxblade
Profile Photo - roxblade

The rm command can be used to remove fil...

MoreThe rm command can be used to remove files, but it doesn't remove directories or folders by default.rm abc.txtTo remove forcefully, use -f like this:...
🗨 1
🐏 0
👁 403
Profile Photo - roxblade

Reply to How to rename a directory on a Linux system?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

The mv command things in an easy way. If...

MoreThe mv command things in an easy way. If you want to rename fie abc.txt to xyz.txt, then navigate to the current directory's path in the terminal and...
🗨 1
🐏 0
👁 373
Profile Photo - roxblade
Profile Photo - roxblade

Use the cp command (lowercase CP).

MoreUse the cp command (lowercase CP). cp file.txt /home/destinationWhat this does is copy the file.txt into the directory called destination under the h...
🗨 1
🐏 0
👁 372
Profile Photo - roxblade

Reply to How to check what version of Linux I am running?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

Enter the following command in the termi...

MoreEnter the following command in the terminal: uname -aThis gives you the Linux kernel version. This command, however, doesn't give you the distributio...
🗨 1
🐏 0
👁 335
Profile Photo - roxblade
Profile Photo - roxblade

You use the ls command (lowercase LS). I...

MoreYou use the ls command (lowercase LS). It will list all the directory contents of files and sub-directories. ls -a will list all files including the h...
🗨 1
🐏 0
👁 341
Profile Photo - roxblade
Profile Photo - roxblade

The chown command is used to change the...

MoreThe chown command is used to change the ownership. And the chmod command is used to change rights. For example, you can use the commandsudo chown -R $...
🗨 1
🐏 0
👁 419
Profile Photo - roxblade
Profile Photo - roxblade

This is a popular fix for the error "The...

MoreThis is a popular fix for the error "There is no connected camera" on Mac. It happens when you try to use FaceTime (called iSight formerly) mostly, so...
🗨 1
🐏 0
👁 508
Profile Photo - roxblade

Reply to Installation issue: Getting error "sudo pip command not found." What should I do?

Comments in Shell Scripting | By roxblade

Published | Last Update

Profile Photo - roxblade

Maybe there's a version conflict? If you...

MoreMaybe there's a version conflict? If you are running Python 3.2 and are trying to get Pip 3, it won't work. So, make sure both versions are same.If th...
🗨 1
🐏 0
👁 390
Profile Photo - roxblade
Profile Photo - roxblade

The general explanation behind this erro...

MoreThe general explanation behind this error is that instead of a file or resource, the command downloaded an HTML doc or a webpage. Now, based on the en...
🗨 1
🐏 0
👁 482
Profile Photo - roxblade
Profile Photo - roxblade

The DHCP server file, or the Dynaic Host...

MoreThe DHCP server file, or the Dynaic Host Configuration Protocol, is a service responsible for assigning IP addresses and other details like broadcast...
🗨 1
🐏 0
👁 391
Profile Photo - roxblade
Profile Photo - roxblade

The colon symbol is used for most Linux...

MoreThe colon symbol is used for most Linux config files, and you mean "delimiter". On the other hand, the awk command utilizes spaces (or tabs, which are...
🗨 1
🐏 0
👁 394
Profile Photo - roxblade
Profile Photo - roxblade

Actually there are three main wildcards...

MoreActually there are three main wildcards for the Linux terminal. These are:The asterisk, or * The question mark, or ? And the square brackets, or []T...
🗨 1
🐏 0
👁 398
Profile Photo - roxblade

Reply to What directory is the Linux kernel stored in?

Comments in Shell Scripting | By roxblade

Published

Profile Photo - roxblade

Linux kernel is one of the most beautifu...

MoreLinux kernel is one of the most beautiful pieces of code that there is. It's clean, lightweight, and focuses on efficiency rather than visual glamor.T...
🗨 1
🐏 0
👁 320
Profile Photo - roxblade
Profile Photo - roxblade

You'll need to be more specific that tha...

MoreYou'll need to be more specific that that. Most probably, it will run into a boot error and that means that you will need to fix it by reinstalling or...
🗨 1
🐏 0
👁 262