SA
메인 내용으로 이동

Linux Commands

CommandDescription
lslists the current directory.
ls -alists the current directory with hidden files and . and ...
ls -llists the current directory in a long list format.
echo "hello"prints "hello" to the console.
echo -n "hello"prints "hello" to the console without trailing lf.
echo `date` prints current date.
echo `date +%m%d%y-%H%M%S` prints the current date in a specific format.
cat /etc/sysctl.confreads data from file to output.
more /etc/sysctl.confreads data from file to output, one screen at a time.
mkdir tmpcreates directory tmp.
pwdprints working directory.
cd tmpchanges directory to tmp.
pwdprints working directory.
lslists current directory.
cd ..change directory to parent directory.
cp /etc/sysctl.conf tmpcopies cp /etc/sysctl.conf to tmp.
cp tmp/sysctl.conf tmp/abccopies tmp/sysctl.conf to tmp/abc.
ls -aF tmplists current directory, -a all files, -F, append indicator (one of */=>@ | ) to entries.
mv tmp/sysctl.conf tmp/xyzmoves, or renames tmp/sysctl.conf to tmp/xyz.
ls -aF tmplists current directory, -a all files, -F, append indicator (one of */=>@ | ) to entries.
man g++opens manual for g++.
rm tmp/abcremoves tmp/abc.
touch tmp/defgcreates an empty file at tmp/defg.
ps -xprints all process status, including non-user invoked ones.
ps -auxwprints all process status, except the session leaders and processes not associated with a terminal, and displays only information about processes with the user ID numbers or login names specified for the Ulist variable, including non-user invoked ones, in a wide-column format for output.
pico tmp/xyzopens tmp/xyz in a simple text editor pico.
exitends the terminal session.

이 문서를 언급한 문서들