I am new to linux, currently I am taking CSN to learn the linux operating system. Everything is virtual so any questions we basically have to find out for ourselves. So i thought I would come here and see if I could get any help understanding The lab I am working on is this:
We can use the "file" command to get this information. Enter:
$ file /usr/bin/aspell
This gives file information about the program "aspell". Notice it's an ELF 64-bit LSB executable ... this just means it's a compiled program.
What type of file is /.bash_history? ___________________________________________
How about /etc/.ssh? ___________________________________________
9. The "echo" command and environment variables. The echo command outputs a string to standard output. For instance, enter
$ echo I am a linux god.
In addition to this, we can also output the contents of certain "environment" variables. The two that I'd like you to know are:
$HOME (note the dollar sign and capitalization -- displays your home directory), and $PATH (displays the directories in which to look for commands).
Enter:
$ echo My Home Directory is $HOME
$ echo $PATH
Question -- enter the command that will display the contents of the "$TO" variable (capital "Tee Oh" )
What does the $TO variable contain? ___________________
I am trying to use the file command to get information about a certain program first being aspell. Then as you can see he asked for the other two. when i try and run the file command it gives me an error and says its not in the directory. Any help would be greatly appreciated. Then also I am confused on this $TO variable and how to figure out what it contains? I understand when I run echo $PATH, I am just a bit confused on the $TO. Thank you for any help and input.
We can use the "file" command to get this information. Enter:
$ file /usr/bin/aspell
This gives file information about the program "aspell". Notice it's an ELF 64-bit LSB executable ... this just means it's a compiled program.
What type of file is /.bash_history? ___________________________________________
How about /etc/.ssh? ___________________________________________
9. The "echo" command and environment variables. The echo command outputs a string to standard output. For instance, enter
$ echo I am a linux god.
In addition to this, we can also output the contents of certain "environment" variables. The two that I'd like you to know are:
$HOME (note the dollar sign and capitalization -- displays your home directory), and $PATH (displays the directories in which to look for commands).
Enter:
$ echo My Home Directory is $HOME
$ echo $PATH
Question -- enter the command that will display the contents of the "$TO" variable (capital "Tee Oh" )
What does the $TO variable contain? ___________________
I am trying to use the file command to get information about a certain program first being aspell. Then as you can see he asked for the other two. when i try and run the file command it gives me an error and says its not in the directory. Any help would be greatly appreciated. Then also I am confused on this $TO variable and how to figure out what it contains? I understand when I run echo $PATH, I am just a bit confused on the $TO. Thank you for any help and input.