answersLogoWhite

0


Best Answer

Linux commands are commands entered into a Linux terminal (command line interface) and it performs accordingly. For example: if you entered 'pwd' into the terminal prompt and pressed ENTER it would return the current working directory be it /home or /etc

'ls' will list all files and directories the specified directory. If no directory is given, the current one will be used as default.

the best way to learn Linux commands is to try them out for yourself which you can via installing Linux or downloading a live Linux CD, booting into it and type in different commands (as a normal, non-root user -- root has all kinds of super-duper powers and can break things easily).

AnswerIn fact, the 'commands' are programs. They can be stored in different directories, usually:

/bin

/usr/bin

/usr/sbin

For example, when you type 'date' into a command line, the program /bin/date is launched. Programs in Linux don't usually have .exe in name. This program prints current date on users screen.

Answerusually

/usr/sbin

/usr/bin

just type:

which command

at the prompt where command is what you are searching for and the Linux style computer will tell you.

i.e. :

%which CD

returns:

CD: /usr/bin/CD /usr/share/man/man1/CD.1.gz

so it says that the command CD is at /usr/bin and the manual is at /usr/share/man/man1.

There are many different commands available in Linux. Some of the most basic are:

  • ls - lists the contents of a directory
  • dir - same as above but with escaped spaces
  • mv - move a file
  • rm - delete a file (semi-permanent)
  • cat - reads a file
  • less - used to pipe lengthy output from a command so that it can be scrolled through. Use like ls | less.
  • cp - copy files. cp file1 file1copy
  • grep - search for text in a file. Can also be used to search for words in a command output. Example: ls | grep partoffilename
User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you mean by Commands in Linux environment?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do you mean by Linux Utilities?

utilities is nothing but predefined commands in linux


How many different commands are there for Linux?

Innumerable. Remember that any program on Linux can be launched from the command line, so there are as many commands as there are programs.


What does dse mean in Linux?

DSE: Distributed Systems Environment (Honeywell, Bull)


What are the Linux commands used by Oracle DBA?

ls


Explain Backup management commands in Linux?

There are no standardized commands for backing up a Linux system. Backup methods can range from dd to RAID to one of various backup utilities.


Are Linux commands entered via the command line case sensitive?

Yes. Just about everything to do with Linux on the command line is case sensitive, including commands and file names.


What are the common Linux commands by Oracle 10g?

Oracle 10g's commands are internal; they have nothing to do with what platform it is running on.


How do you find out what DOS Commands are available in Linux?

There is none. For starters, you have it backwards, DOS actually copied most of its commands from Unix (The rest came from CP/M.), which Linux is inspired by. Commands like "cd" and "dir" were Unix commands long before DOS even existed.


How do you clear your command history in Linux?

You can view the history of commands entered on a Linux system with the history command.


How would one go about learning fdisk Linux?

There are many websites where one can learn about fdisk and many other Linux commands including Linux Help, Tuxfiles, Computer Hope, Linux Questions and Linux Solved.


Is the architecture of Linux based on DOS?

No. Linux is a free, open-source version of UNIX. Many of DOS's commands were based on UNIX commands, but the underlying operating system is much more powerful than DOS.


How many commands can you store in the history command in Linux?

bash by default is configured to store the last 500 commands. You can configure it to store as many as you want, limited only by practicality and size, to whatever you want by setting the environment variable HISTFILESIZE to a different number.export HISTFILESIZE=2000